<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <record id="view_product_brand_tag_tree" model="ir.ui.view">
        <field name="name">product.brand.tag.tree</field>
        <field name="model">product.brand.tag</field>
        <field name="arch" type="xml">
            <list editable="top">
                <field name="name" />
                <field name="code" />
                <field name="product_brand_ids" widget="many2many_tags" />
                <field name="company_id" groups="base.group_multi_company" />
            </list>
        </field>
    </record>

    <record id="view_product_brand_tag_form" model="ir.ui.view">
        <field name="name">product.brand.tag.form</field>
        <field name="model">product.brand.tag</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <div class="oe_title">
                        <label for="name" class="oe_edit_only" />
                        <h1>
                            <field name="name" />
                        </h1>
                    </div>
                    <group>
                        <group>
                            <field name="code" />
                            <field name="color" string="Color" widget="color_picker" />
                            <field
                                name="company_id"
                                groups="base.group_multi_company"
                            />
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record model="ir.actions.act_window" id="action_product_brand_tags">
        <field name="name">Brand tags</field>
        <field name="res_model">product.brand.tag</field>
        <field name="view_mode">list</field>
    </record>

    <menuitem
        name="Product Brands Tags"
        id="menu_product_brand_tags"
        action="action_product_brand_tags"
        parent="sale.prod_config_main"
    />
</odoo>
