[IMP] mrp_subcontracting: improve views of record component
Add decoration in the qty_done fields to ease the usage of the record component wizard. task-2486811 Part-of: odoo/odoo#75041
This commit is contained in:
@@ -23,7 +23,9 @@
|
||||
attrs="{'invisible': [('tracking', 'not in', ('serial', 'lot'))], 'required': [('tracking', 'in', ('serial', 'lot'))]}"
|
||||
context="{'default_product_id': product_id, 'default_company_id': company_id}"/>
|
||||
<field name="product_uom_qty" readonly="1" force_save="1"/>
|
||||
<field name="qty_done"/>
|
||||
<field name="qty_done"
|
||||
decoration-warning="product_uom_qty < qty_done"
|
||||
decoration-success="product_uom_qty == qty_done"/>
|
||||
<field name="product_uom_id" groups="uom.group_uom"/>
|
||||
</tree>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user