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

    <record id="view_branding_form" model="ir.ui.view">
        <field name="name">encoach.branding.form</field>
        <field name="model">encoach.branding</field>
        <field name="arch" type="xml">
            <form string="Branding">
                <sheet>
                    <group>
                        <group>
                            <field name="entity_id"/>
                            <field name="app_name"/>
                            <field name="white_label_domain"/>
                        </group>
                        <group>
                            <field name="logo" widget="image" class="oe_avatar"/>
                            <field name="logo_url"/>
                            <field name="favicon" widget="image" class="oe_avatar"/>
                        </group>
                    </group>
                    <group string="Colors">
                        <group>
                            <field name="primary_color" widget="color"/>
                            <field name="secondary_color" widget="color"/>
                            <field name="background_color" widget="color"/>
                        </group>
                    </group>
                    <group string="Login Page">
                        <field name="login_title"/>
                        <field name="login_description"/>
                    </group>
                    <group string="Custom CSS">
                        <field name="custom_css"/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="view_branding_list" model="ir.ui.view">
        <field name="name">encoach.branding.list</field>
        <field name="model">encoach.branding</field>
        <field name="arch" type="xml">
            <list string="Branding">
                <field name="entity_id"/>
                <field name="app_name"/>
                <field name="primary_color"/>
                <field name="secondary_color"/>
                <field name="white_label_domain"/>
            </list>
        </field>
    </record>

    <record id="action_branding" model="ir.actions.act_window">
        <field name="name">White-Label Branding</field>
        <field name="res_model">encoach.branding</field>
        <field name="view_mode">list,form</field>
    </record>

</odoo>
