| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | |
| 4 | <record id="sale_order_form_mrp" model="ir.ui.view"> |
| 5 | <field name="name">sale.order.inherited.form.mrp</field> |
| 6 | <field name="model">sale.order</field> |
| 7 | <field name="inherit_id" ref="sale.view_order_form"/> |
| 8 | <field name="arch" type="xml"> |
| 9 | <div name="button_box" position="inside"> |
| 10 | <button |
| 11 | name="action_view_mrp_production" |
| 12 | type="object" |
| 13 | class="oe_stat_button" |
| 14 | icon="fa-wrench" |
| 15 | invisible="mrp_production_count == 0" |
| 16 | groups="mrp.group_mrp_user"> |
| 17 | <field name="mrp_production_count" widget="statinfo" string="Manufacturing"/> |
| 18 | </button> |
| 19 | </div> |
| 20 | </field> |
| 21 | </record> |
| 22 | |
| 23 | </odoo> |