diff options
| author | svs-odoo <svs@odoo.com> | 2019-02-13 13:57:03 +0000 |
|---|---|---|
| committer | svs-odoo <svs@odoo.com> | 2019-02-13 15:40:10 +0000 |
| commit | 0fa2f87c1c3472ff48a6bde58ec77b5950f58f5a (patch) | |
| tree | 4eb0d66b033885948592a52c1dd9681692497d3b | |
| parent | 9607f4e801cf4f78eb632e8f603822a891d47a31 (diff) | |
[IMP] product: display UoM for product cost
Before this commit, when UoM was displayed, it wasn't specify if cost
referred to 'Unit of Measure' or 'Purchase Unit of Measure'.
To avoid ambiguity, it's now specified.
This apply when 'Units of Measure' is ticked in settings.
Task #1937177
closes odoo/odoo#31070
| -rw-r--r-- | addons/product/views/product_views.xml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index 3b4b0f65433..faf0ce4e454 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -51,8 +51,11 @@ <group name="group_standard_price"> <field name="list_price" string="Sales Price" widget='monetary' options="{'currency_field': 'currency_id', 'field_digits': True}"/> <label for="standard_price" groups="base.group_user" attrs="{'invisible': [('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"/> - <div name="standard_price_uom" groups="base.group_user" attrs="{'invisible': [('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}"> + <div name="standard_price_uom" groups="base.group_user" attrs="{'invisible': [('product_variant_count', '>', 1), ('is_product_variant', '=', False)]}" class="o_row"> <field name="standard_price" widget='monetary' options="{'currency_field': 'currency_id'}"/> + <span groups="uom.group_uom" class="oe_read_only">per + <field name="uom_name"/> + </span> </div> <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/> |
