[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:
Rémy Voet (ryv)
2021-09-03 10:37:47 +00:00
parent 6aa8b7dd67
commit 22276db82b
@@ -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 &lt; qty_done"
decoration-success="product_uom_qty == qty_done"/>
<field name="product_uom_id" groups="uom.group_uom"/>
</tree>
</field>