| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <record id="account_analytic_account_view_form_mrp" model="ir.ui.view"> |
| 4 | <field name="name">account.analytic.account.form.mrp</field> |
| 5 | <field name="model">account.analytic.account</field> |
| 6 | <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/> |
| 7 | <field eval="14" name="priority"/> |
| 8 | <field name="arch" type="xml"> |
| 9 | <div name="button_box" position="inside"> |
| 10 | <button class="oe_stat_button" type="object" name="action_view_mrp_production" |
| 11 | groups="mrp.group_mrp_user" |
| 12 | icon="fa-wrench" invisible="production_count == 0"> |
| 13 | <field string="Manufacturing Orders" name="production_count" widget="statinfo"/> |
| 14 | </button> |
| 15 | <button class="oe_stat_button" type="object" name="action_view_mrp_bom" |
| 16 | groups="mrp.group_mrp_user" |
| 17 | icon="fa-flask" invisible="bom_count == 0"> |
| 18 | <field string="Bills of Materials" name="bom_count" widget="statinfo"/> |
| 19 | </button> |
| 20 | </div> |
| 21 | </field> |
| 22 | </record> |
| 23 | |
| 24 | </odoo> |