<?xml version="1.0" encoding="utf-8"?>
<odoo>
    
    <!-- Transport Attribute Views -->
    <record id="view_logistics_transport_attribute_tree" model="ir.ui.view">
        <field name="name">logistics.transport.attribute.tree</field>
        <field name="model">logistics.transport.attribute</field>
        <field name="arch" type="xml">
            <list>
                <field name="sequence" widget="handle"/>
                <field name="name"/>
                <field name="active"/>
            </list>
        </field>
    </record>

    <record id="view_logistics_transport_attribute_form" model="ir.ui.view">
        <field name="name">logistics.transport.attribute.form</field>
        <field name="model">logistics.transport.attribute</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <div class="oe_title">
                        <h1>
                            <field name="name" placeholder="Attribute Name"/>
                        </h1>
                    </div>
                    
                    <group>
                        <group>
                            <field name="sequence"/>
                            <field name="active"/>
                        </group>
                    </group>
                    
                    <notebook>
                        <page string="Attribute Values">
                            <field name="value_ids">
                                <list editable="bottom">
                                    <field name="sequence" widget="handle"/>
                                    <field name="name"/>
                                    <field name="active"/>
                                </list>
                            </field>
                        </page>
                    </notebook>
                </sheet>
            </form>
        </field>
    </record>

    <record id="action_logistics_transport_attribute" model="ir.actions.act_window">
        <field name="name">Transport Attributes</field>
        <field name="res_model">logistics.transport.attribute</field>
        <field name="view_mode">list,form</field>
    </record>

    <!-- Transport Attribute Value Views -->
    <record id="view_logistics_transport_attribute_value_tree" model="ir.ui.view">
        <field name="name">logistics.transport.attribute.value.tree</field>
        <field name="model">logistics.transport.attribute.value</field>
        <field name="arch" type="xml">
            <list>
                <field name="sequence" widget="handle"/>
                <field name="attribute_id"/>
                <field name="name"/>
                <field name="active"/>
            </list>
        </field>
    </record>

    <record id="view_logistics_transport_attribute_value_form" model="ir.ui.view">
        <field name="name">logistics.transport.attribute.value.form</field>
        <field name="model">logistics.transport.attribute.value</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <div class="oe_title">
                        <h1>
                            <field name="name" placeholder="Value Name"/>
                        </h1>
                    </div>
                    
                    <group>
                        <group>
                            <field name="attribute_id"/>
                            <field name="sequence"/>
                            <field name="active"/>
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="action_logistics_transport_attribute_value" model="ir.actions.act_window">
        <field name="name">Attribute Values</field>
        <field name="res_model">logistics.transport.attribute.value</field>
        <field name="view_mode">list,form</field>
    </record>

</odoo>