[IMP] mrp: use decoration-danger for not available raw materials even if it gives the same color as when you consume more than foreseen
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
<notebook>
|
||||
<page string="Consumed Materials">
|
||||
<field name="move_raw_ids" options="{'reload_on_button': True}" context="{'default_location_id': location_src_id, 'default_location_dest_id': location_dest_id}">
|
||||
<tree editable="bottom" delete="0" default_order="is_done desc,sequence" decoration-muted="is_done" decoration-danger="quantity_done>product_uom_qty" decoration-success="quantity_done==product_uom_qty" create="0">
|
||||
<tree editable="bottom" delete="0" default_order="is_done desc,sequence" decoration-muted="is_done" decoration-warning="quantity_done>product_uom_qty" decoration-success="quantity_done==product_uom_qty" decoration-danger="quantity_available < product_uom_qty" create="0">
|
||||
<field name="product_id" required="1"/>
|
||||
<field name="product_uom" groups="product.group_uom"/>
|
||||
<field name="has_tracking" invisible="1"/>
|
||||
@@ -136,7 +136,7 @@
|
||||
</page>
|
||||
<page string="Finished Products">
|
||||
<field name="move_finished_ids" options="{'reload_on_button': True}" context="{'default_location_id': location_src_id, 'default_location_dest_id': location_dest_id}">
|
||||
<tree editable="bottom" delete="0" default_order="is_done desc,sequence" decoration-muted="is_done" decoration-danger="quantity_done>product_uom_qty" decoration-success="quantity_done==product_uom_qty" create="0">
|
||||
<tree editable="bottom" delete="0" default_order="is_done desc,sequence" decoration-muted="is_done" decoration-warning="quantity_done>product_uom_qty" decoration-success="quantity_done==product_uom_qty" create="0">
|
||||
<field name="product_id" required="1"/>
|
||||
<field name="product_uom" groups="product.group_uom"/>
|
||||
<field name="is_done" invisible="1"/>
|
||||
|
||||
Reference in New Issue
Block a user