<odoo>
    <record id="product_template_form_view_inherit_recipe" model="ir.ui.view">
        <field name="name">product.template.form.inherit.recipe</field>
        <field name="model">product.template</field>
        <field name="inherit_id" ref="product.product_template_only_form_view"/>
        <field name="arch" type="xml">
            <xpath expr="//page[@name='sales']" position="after">
                <page string="Recipe &amp; Margins" name="recipe_margins">
                    <group>
                        <group string="Recipe Information">
                            <field name="has_recipe"/>
                            <field name="recipe_cost" widget="monetary"/>
                            <field name="min_stock_level"/>
                        </group>

                        <group string="Profitability">
                            <field name="list_price" string="Selling Price" widget="monetary"/>
                            <field name="profit_margin" widget="progressbar"/>
                        </group>
                    </group>
                    <div class="alert alert-info" role="alert" invisible="has_recipe">
                        This product does not have a recipe. Go to <strong>Recipes</strong> menu to define one.
                    </div>
                </page>
            </xpath>
        </field>
    </record>
</odoo>
