<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

    <record id="product_template_interchangeable_form_view" model="ir.ui.view">
        <field name="name">product.template.interchangeable.product.form</field>
        <field name="model">product.template</field>
        <field name="inherit_id" ref="product.product_template_only_form_view" />
        <field name="arch" type="xml">
            <notebook position="inside">
                <page
                    name="interchangeable"
                    string="Interchangeable"
                    attrs="{'invisible': [('product_variant_count', '&gt;', 1)]}"
                >
                    <field name="product_tmpl_interchangeable_ids" nolabel="1" />
                </page>
            </notebook>
        </field>
    </record>

    <record id="product_normal_form_view" model="ir.ui.view">
        <field name="name">product.product.interchangeable.form</field>
        <field name="model">product.product</field>
        <field name="inherit_id" ref="product.product_normal_form_view" />
        <field name="arch" type="xml">
            <notebook position="inside">
                <page name="interchangeable" string="Interchangeable">
                    <field name="product_interchangeable_ids" nolabel="1" />
                </page>
            </notebook>
        </field>
    </record>

</odoo>
