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

    <record id="view_logistics_transport_category_form" model="ir.ui.view">
        <field name="name">logistics.transport.category.form</field>
        <field name="model">logistics.transport.category</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <div class="oe_title">
                        <h1>
                            <field name="name" placeholder="Category Name"/>
                        </h1>
                    </div>
                    
                    <group>
                        <group>
                            <field name="code"/>
                            <field name="sequence"/>
                            <field name="active"/>
                        </group>
                    </group>
                    
                    <notebook>
                        <page string="Category Tags">
                            <field name="tag_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_category" model="ir.actions.act_window">
        <field name="name">Transport Categories</field>
        <field name="res_model">logistics.transport.category</field>
        <field name="view_mode">list,form</field>
    </record>

    <!-- Loading Type Views -->
    <record id="view_logistics_loading_type_tree" model="ir.ui.view">
        <field name="name">logistics.loading.type.tree</field>
        <field name="model">logistics.loading.type</field>
        <field name="arch" type="xml">
            <list>
                <field name="sequence" widget="handle"/>
                <field name="name"/>
                <field name="code"/>
                <field name="active"/>
            </list>
        </field>
    </record>

    <record id="view_logistics_loading_type_form" model="ir.ui.view">
        <field name="name">logistics.loading.type.form</field>
        <field name="model">logistics.loading.type</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <div class="oe_title">
                        <h1>
                            <field name="name" placeholder="Loading Type Name"/>
                        </h1>
                    </div>
                    
                    <group>
                        <group>
                            <field name="code"/>
                            <field name="sequence"/>
                            <field name="active"/>
                        </group>
                    </group>
                    
                    <notebook>
                        <page string="Loading Type Tags">
                            <field name="tag_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_loading_type" model="ir.actions.act_window">
        <field name="name">Loading Types</field>
        <field name="res_model">logistics.loading.type</field>
        <field name="view_mode">list,form</field>
    </record>

</odoo>