<odoo>
    <record id="view_move_form_inherit_mrp_account" model="ir.ui.view">
        <field name="name">account.move.inherit.mrp.account</field>
        <field name="model">account.move</field>
        <field name="inherit_id" ref="account.view_move_form"/>
        <field name="arch" type="xml">
            <xpath expr="//div[@name='button_box']" position="inside">
                <button class="oe_stat_button" name="action_view_wip_production" type="object" icon="fa-wrench" invisible="wip_production_count == 0" groups="mrp.group_mrp_user">
                    <div class="o_field_widget o_stat_info">
                        <span class="o_stat_value"><field name="wip_production_count"/></span>
                        <span class="o_stat_text">Manufacturing</span>
                    </div>
                </button>
            </xpath>
        </field>
    </record>
</odoo>
