summaryrefslogtreecommitdiff
path: root/addons/purchase_mrp
diff options
context:
space:
mode:
authorRémy Voet (ryv) <ryv@odoo.com>2020-05-14 11:20:15 +0200
committerSimon Lejeune <sle@openerp.com>2020-06-15 16:59:41 +0200
commit38c375783fdcc5969092be3d03079a0811522045 (patch)
tree19d1f3d47ba7b8f515135f359b845910ea1a6bda /addons/purchase_mrp
parent5311f01e65b3d544d00e956e095e37331bf3a4f2 (diff)
[FIX] (purchase_)mrp(_account): fix order stats button MO
Task: 2241471
Diffstat (limited to 'addons/purchase_mrp')
-rw-r--r--addons/purchase_mrp/views/mrp_production_views.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/purchase_mrp/views/mrp_production_views.xml b/addons/purchase_mrp/views/mrp_production_views.xml
index bcfd3b70fe1..8aaffd649b2 100644
--- a/addons/purchase_mrp/views/mrp_production_views.xml
+++ b/addons/purchase_mrp/views/mrp_production_views.xml
@@ -3,9 +3,10 @@
<record id="mrp_production_form_view_purchase" model="ir.ui.view">
<field name="name">mrp.production.inherited.form.purchase</field>
<field name="model">mrp.production</field>
+ <field name="priority">32</field>
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
<field name="arch" type="xml">
- <xpath expr="//div[@name='button_box']" position="inside">
+ <xpath expr="//button[@name='action_view_mrp_production_childs']" position="before">
<button class="oe_stat_button" name="action_view_purchase_orders" type="object" icon="fa-credit-card" groups="purchase.group_purchase_user" attrs="{'invisible': [('purchase_order_count', '=', 0)]}">
<div class="o_field_widget o_stat_info">
<span class="o_stat_value"><field name="purchase_order_count"/></span>