<?xml version="1.0" ?>
<odoo>

    <!--Product Template-->
    <record id="product_template_only_form_view" model="ir.ui.view">
        <field name="name">product.template - product_mrp_info</field>
        <field name="model">product.template</field>
        <field name="inherit_id" ref="product.product_template_only_form_view" />
        <field name="groups_id" eval="[(4, ref('mrp.group_mrp_user'))]" />
        <field name="arch" type="xml">
            <div class="oe_button_box" position="inside">
                <button
                    class="oe_stat_button"
                    name="action_view_mrp_productions"
                    type="object"
                    attrs="{'invisible':[('type', 'not in', ['product', 'consu'])]}"
                    icon="fa-wrench"
                    help="Manufactured Orders"
                >
                    <field string="MO's" name="mo_count" widget="statinfo" />
                </button>
            </div>
        </field>
    </record>

    <!--Product Variant-->
    <record id="product_normal_form_view" model="ir.ui.view">
        <field name="name">product.product - product_mrp_info</field>
        <field name="model">product.product</field>
        <field name="inherit_id" ref="product.product_normal_form_view" />
        <field name="groups_id" eval="[(4, ref('mrp.group_mrp_user'))]" />
        <field name="arch" type="xml">
            <div class="oe_button_box" position="inside">
                <button
                    class="oe_stat_button"
                    name="action_view_mrp_productions"
                    type="object"
                    attrs="{'invisible': [('type', 'not in', ['product', 'consu'])]}"
                    icon="fa-wrench"
                    help="Manufactured Orders"
                >
                    <field string="MO's" name="mo_count" widget="statinfo" />
                </button>
            </div>
        </field>
    </record>

</odoo>
