<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 ACSONE SA/NV
     License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0). -->
<odoo>
    <record model="ir.ui.view" id="res_brand_form_view">
        <field name="model">res.brand</field>
        <field name="inherit_id" eval="False" />
        <field name="mode">primary</field>
        <field name="arch" type="xml">
            <form string="Partners">
                <sheet>
                    <div class="oe_button_box" name="button_box" />
                    <widget
                        name="web_ribbon"
                        title="Archived"
                        bg_color="bg-danger"
                        invisible="active == True"
                    />
                    <field name="avatar_128" invisible="1" />
                    <field
                        name="image_1920"
                        widget="image"
                        class="oe_avatar"
                        options="{&quot;preview_image&quot;: &quot;avatar_128&quot;}"
                    />
                    <div class="oe_title mb24">
                        <field name="active" invisible="1" />
                        <label for="name" class="oe_edit_only" />
                        <h1>
                            <field name="name" />
                        </h1>
                    </div>

                    <group>
                        <group>
                            <label for="street" string="Address" />
                            <div class="o_address_format">
                                <field
                                    name="street"
                                    placeholder="Street..."
                                    class="o_address_street"
                                />
                                <field
                                    name="street2"
                                    placeholder="Street 2..."
                                    class="o_address_street"
                                />
                                <field
                                    name="city"
                                    placeholder="City"
                                    class="o_address_city"
                                />
                                <field
                                    name="state_id"
                                    class="o_address_state"
                                    placeholder="State"
                                    options="{'no_open': True, 'no_quick_create': True}"
                                    context="{'country_id': country_id, 'default_country_id': country_id, 'zip': zip}"
                                />
                                <field
                                    name="zip"
                                    placeholder="ZIP"
                                    class="o_address_zip"
                                />
                                <div
                                    name="partner_address_country"
                                    class="d-flex justify-content-between"
                                >
                                    <field
                                        name="country_id"
                                        placeholder="Country"
                                        class="o_address_country"
                                        options="{&quot;no_open&quot;: True, &quot;no_create&quot;: True}"
                                    />
                                </div>
                            </div>
                            <field name="vat" placeholder="e.g. BE0477472701" />
                        </group>
                        <group>
                            <field name="phone" widget="phone" />
                            <field name="mobile" widget="phone" />
                            <field name="email" widget="email" />
                            <field
                                name="website"
                                string="Website"
                                widget="url"
                                placeholder="e.g. https://www.odoo.com"
                            />
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>
    <record model="ir.ui.view" id="res_brand_search_view">
        <field name="model">res.brand</field>
        <field name="inherit_id" ref="base.view_res_partner_filter" />
        <field name="mode">primary</field>
        <field name="arch" type="xml">
            <xpath expr="//search" position="attributes">
                <attribute name="string">Brands</attribute>
            </xpath>
        </field>
    </record>
    <record model="ir.ui.view" id="res_brand_kanban_view">
        <field name="model">res.brand</field>
        <field name="inherit_id" eval="False" />
        <field name="mode">primary</field>
        <field name="arch" type="xml">
            <kanban class="o_res_partner_kanban" sample="1">
                <field name="id" />
                <field name="color" />
                <field name="display_name" />
                <field name="title" />
                <field name="email" />
                <field name="phone" />
                <field name="street" />
                <field name="street2" />
                <field name="zip" />
                <field name="city" />
                <field name="country_id" />
                <field name="mobile" />
                <field name="state_id" />
                <field name="category_id" />
                <field name="image_128" />
                <field name="type" />
                <templates>
                    <t t-name="card" class="flex-row">
                        <t
                            t-set="placeholder"
                            t-value="'/base/static/img/company_image.png'"
                        />
                        <field
                            name="image_128"
                            widget="image"
                            class="h-100"
                            options="{'img_class': 'object-fit-cover'}"
                        />
                        <main class="ps-2 ps-md-0">
                            <div class="mb-1">
                                <field name="display_name" class="mb-0 fw-bold fs-5" />
                            </div>
                            <div
                                t-if="record.city.raw_value or record.country_id.raw_value"
                            >
                                <field name="city" />
                                <span
                                    t-if="record.city.raw_value and record.country_id.raw_value"
                                >, </span>
                                <field name="country_id" />
                            </div>
                            <field name="email" class="text-truncate" />
                            <footer>
                                <div />
                            </footer>
                        </main>
                    </t>
                </templates>
            </kanban>
        </field>
    </record>
    <record model="ir.ui.view" id="res_brand_list_view">
        <field name="name">res.brand.list (in partner_brand)</field>
        <field name="model">res.brand</field>
        <field name="inherit_id" ref="base.view_partner_tree" />
        <field name="mode">primary</field>
        <field name="arch" type="xml">
            <xpath expr="//list" position="attributes">
                <attribute name="string">Brands</attribute>
            </xpath>
        </field>
    </record>
    <record model="ir.actions.act_window" id="res_brand_act_window">
        <field name="name">Brands</field>
        <field name="res_model">res.brand</field>
        <field name="view_mode">kanban,list,form</field>
        <field name="context">{'default_customer': 0, 'default_supplier': 0,}
        </field>
    </record>
    <record model="ir.ui.menu" id="res_brand_menu">
        <field name="name">Brands</field>
        <field name="parent_id" ref="base.menu_users" />
        <field name="action" ref="res_brand_act_window" />
    </record>
</odoo>
