[FIX] stock: show uom only when multi uom is activated
before this commit, in the storage categories form view, the product uom is shown even if the multi uom feature is not activated in the settings. * from inventory settings, enable storage categories * inventory -> configuration -> warehouse management -> storage categories after this commit, the uom will be shown only when multi uom is activated in storage categories view. closes odoo/odoo#110327 X-original-commit: fa42ee1a161578028986caa2a60e0735d79b2734 Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
<tree editable="bottom">
|
||||
<field name="product_id" required="1" context="{'default_detailed_type': 'product'}"/>
|
||||
<field name="quantity"/>
|
||||
<field name="product_uom_id" options="{'no_create': True, 'no_open': True}"/>
|
||||
<field name="product_uom_id" groups="uom.group_uom" options="{'no_create': True, 'no_open': True}"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
</tree>
|
||||
</field>
|
||||
@@ -85,7 +85,7 @@
|
||||
<field name="product_id" invisible="context.get('default_product_id')" attrs="{'required': [('package_type_id', '=', False)], 'readonly': [('package_type_id', '!=', False)]}"/>
|
||||
<field name="package_type_id" attrs="{'required': [('product_id', '=', False)], 'readonly': [('product_id', '!=', False)]}" invisible="context.get('hide_package_type', False)" groups="stock.group_tracking_lot"/>
|
||||
<field name="quantity"/>
|
||||
<field name="product_uom_id" options="{'no_create': True, 'no_open': True}"/>
|
||||
<field name="product_uom_id" groups="uom.group_uom" options="{'no_create': True, 'no_open': True}"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="package_type_id" invisible="1"/>
|
||||
</tree>
|
||||
|
||||
Reference in New Issue
Block a user