summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosse Colpaert <jco@odoo.com>2016-09-22 11:15:07 +0200
committerJosse Colpaert <jco@odoo.com>2016-09-28 12:38:13 +0200
commit631ae042fbef32bb8afaa7db40db5125be4bc8da (patch)
tree061a881b8b05cca2fcacff831c81e619b4d504d2
parent0239202be43aa001d3ae1126e1706c38bfa835ef (diff)
[IMP] mrp: inventory moves stat button should also be visible when you cancelled a manufacturing order
-rw-r--r--addons/mrp/views/mrp_bom_views.xml1
-rw-r--r--addons/mrp/views/mrp_production_views.xml2
2 files changed, 2 insertions, 1 deletions
diff --git a/addons/mrp/views/mrp_bom_views.xml b/addons/mrp/views/mrp_bom_views.xml
index a551abfd8e7..989101784c2 100644
--- a/addons/mrp/views/mrp_bom_views.xml
+++ b/addons/mrp/views/mrp_bom_views.xml
@@ -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"/>
diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml
index 0ae02ef982c..73ade0a0384 100644
--- a/addons/mrp/views/mrp_production_views.xml
+++ b/addons/mrp/views/mrp_production_views.xml
@@ -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>