[FIX] repair: show uom only when multi uom is activated
before this commit in the repair orders tree view, the unit of measure field is shown always without respecting the multi uom feature. after this commit, the field will be shown only once the uom feature is activated in the settings. closes odoo/odoo#109252 X-original-commit: 0796f8ee68c74e10b8f72531b64932e52b86cbef Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<field name="description" optional="hide"/>
|
||||
<field name="product_id" readonly="1" optional="show"/>
|
||||
<field name="product_qty" optional="hide" string="Quantity"/>
|
||||
<field name="product_uom" string="Unit of Measure" readonly="1" optional="hide"/>
|
||||
<field name="product_uom" string="Unit of Measure" readonly="1" groups="uom.group_uom" optional="hide"/>
|
||||
<field name="user_id" optional="hide" widget='many2one_avatar_user'/>
|
||||
<field name="partner_id" readonly="1" optional="show"/>
|
||||
<field name="address_id" optional="show"/>
|
||||
|
||||
Reference in New Issue
Block a user