[IMP] mrp: inventory moves stat button should also be visible when you cancelled a manufacturing order
This commit is contained in:
@@ -78,6 +78,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Bill of Materials" default_order="product_tmpl_id">
|
||||
<field name="active" invisible="1"/>
|
||||
<field name="sequence" invisible="1"/>
|
||||
<field name="product_tmpl_id"/>
|
||||
<field name="code"/>
|
||||
<field name="product_id" groups="product.group_product_variant"/>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<span class="o_stat_text">Work Orders</span>
|
||||
</div>
|
||||
</button>
|
||||
<button name="%(action_mrp_production_moves)d" type="action" string="Inventory Moves" class="oe_stat_button" icon="fa-arrows-v" attrs="{'invisible': [('state', 'not in', ('progress', 'done'))]}"/>
|
||||
<button name="%(action_mrp_production_moves)d" type="action" string="Inventory Moves" class="oe_stat_button" icon="fa-arrows-v" attrs="{'invisible': [('state', 'not in', ('progress', 'cancel', 'done'))]}"/>
|
||||
<button class="oe_stat_button" name="action_see_move_scrap" type="object" icon="fa-arrows-v" attrs="{'invisible': [('scrap_count', '=', 0)]}">
|
||||
<div class="o_form_field o_stat_info">
|
||||
<span class="o_stat_value"><field name="scrap_count"/></span>
|
||||
|
||||
Reference in New Issue
Block a user