<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
    
    <!-- Transport Categories Demo Data -->
    <record id="transport_cat_auto" model="logistics.transport.category">
        <field name="name">Automotive</field>
        <field name="code">auto</field>
        <field name="sequence">10</field>
        <field name="active">True</field>
    </record>
    
    <record id="transport_cat_rail" model="logistics.transport.category">
        <field name="name">Railway</field>
        <field name="code">rail</field>
        <field name="sequence">20</field>
        <field name="active">True</field>
    </record>
    
    <record id="transport_cat_sea" model="logistics.transport.category">
        <field name="name">Maritime</field>
        <field name="code">sea</field>
        <field name="sequence">30</field>
        <field name="active">True</field>
    </record>
    
    <record id="transport_cat_river" model="logistics.transport.category">
        <field name="name">River</field>
        <field name="code">river</field>
        <field name="sequence">40</field>
        <field name="active">True</field>
    </record>

    <!-- Loading Types Demo Data -->
    <record id="loading_type_container" model="logistics.loading.type">
        <field name="name">Container Loading</field>
        <field name="code">container</field>
        <field name="sequence">10</field>
        <field name="active">True</field>
    </record>
    
    <record id="loading_type_bulk" model="logistics.loading.type">
        <field name="name">Bulk Loading</field>
        <field name="code">bulk</field>
        <field name="sequence">20</field>
        <field name="active">True</field>
    </record>
    
    <record id="loading_type_liquid" model="logistics.loading.type">
        <field name="name">Liquid Loading</field>
        <field name="code">liquid</field>
        <field name="sequence">30</field>
        <field name="active">True</field>
    </record>
    
    <record id="loading_type_general" model="logistics.loading.type">
        <field name="name">General Loading</field>
        <field name="code">general</field>
        <field name="sequence">40</field>
        <field name="active">True</field>
    </record>

    <!-- Transport Category Tags Demo Data -->
    <record id="rail_tag_freight" model="logistics.transport.category.tag">
        <field name="name">Грузовой</field>
        <field name="category_id" ref="transport_cat_rail"/>
        <field name="sequence">10</field>
        <field name="active">True</field>
    </record>
    
    <record id="rail_tag_express" model="logistics.transport.category.tag">
        <field name="name">Скоростной</field>
        <field name="category_id" ref="transport_cat_rail"/>
        <field name="sequence">20</field>
        <field name="active">True</field>
    </record>
    
    <record id="auto_tag_local" model="logistics.transport.category.tag">
        <field name="name">Городской</field>
        <field name="category_id" ref="transport_cat_auto"/>
        <field name="sequence">10</field>
        <field name="active">True</field>
    </record>
    
    <record id="auto_tag_intercity" model="logistics.transport.category.tag">
        <field name="name">Междугородный</field>
        <field name="category_id" ref="transport_cat_auto"/>
        <field name="sequence">20</field>
        <field name="active">True</field>
    </record>

    <!-- Loading Type Tags Demo Data -->
    <record id="container_tag_20ft" model="logistics.loading.type.tag">
        <field name="name">20ft</field>
        <field name="loading_type_id" ref="loading_type_container"/>
        <field name="sequence">10</field>
        <field name="active">True</field>
    </record>
    
    <record id="container_tag_40ft" model="logistics.loading.type.tag">
        <field name="name">40ft</field>
        <field name="loading_type_id" ref="loading_type_container"/>
        <field name="sequence">20</field>
        <field name="active">True</field>
    </record>
    
    <record id="bulk_tag_grain" model="logistics.loading.type.tag">
        <field name="name">Зерно</field>
        <field name="loading_type_id" ref="loading_type_bulk"/>
        <field name="sequence">10</field>
        <field name="active">True</field>
    </record>

    <!-- Transport Attributes Demo Data -->
    <record id="attr_loading_type" model="logistics.transport.attribute">
        <field name="name">Тип загрузки</field>
        <field name="sequence">10</field>
        <field name="active">True</field>
    </record>
    
    <record id="attr_max_weight" model="logistics.transport.attribute">
        <field name="name">Максимальный вес</field>
        <field name="sequence">20</field>
        <field name="active">True</field>
    </record>
    
    <record id="attr_temperature_control" model="logistics.transport.attribute">
        <field name="name">Температурный режим</field>
        <field name="sequence">30</field>
        <field name="active">True</field>
    </record>

    <!-- Attribute Values for Loading Type -->
    <record id="value_container" model="logistics.transport.attribute.value">
        <field name="name">Контейнер</field>
        <field name="attribute_id" ref="attr_loading_type"/>
        <field name="sequence">10</field>
        <field name="active">True</field>
    </record>
    
    <record id="value_bulk" model="logistics.transport.attribute.value">
        <field name="name">Навал</field>
        <field name="attribute_id" ref="attr_loading_type"/>
        <field name="sequence">20</field>
        <field name="active">True</field>
    </record>
    
    <record id="value_tank" model="logistics.transport.attribute.value">
        <field name="name">Цистерна</field>
        <field name="attribute_id" ref="attr_loading_type"/>
        <field name="sequence">30</field>
        <field name="active">True</field>
    </record>
    
    <record id="value_refrigerator" model="logistics.transport.attribute.value">
        <field name="name">Рефрижератор</field>
        <field name="attribute_id" ref="attr_loading_type"/>
        <field name="sequence">40</field>
        <field name="active">True</field>
    </record>

    <!-- Attribute Values for Max Weight -->
    <record id="value_25t" model="logistics.transport.attribute.value">
        <field name="name">25т</field>
        <field name="attribute_id" ref="attr_max_weight"/>
        <field name="sequence">10</field>
        <field name="active">True</field>
    </record>
    
    <record id="value_30t" model="logistics.transport.attribute.value">
        <field name="name">30т</field>
        <field name="attribute_id" ref="attr_max_weight"/>
        <field name="sequence">20</field>
        <field name="active">True</field>
    </record>
    
    <record id="value_70t" model="logistics.transport.attribute.value">
        <field name="name">70т</field>
        <field name="attribute_id" ref="attr_max_weight"/>
        <field name="sequence">30</field>
        <field name="active">True</field>
    </record>
    
    <record id="value_5000t" model="logistics.transport.attribute.value">
        <field name="name">5000т</field>
        <field name="attribute_id" ref="attr_max_weight"/>
        <field name="sequence">40</field>
        <field name="active">True</field>
    </record>

    <!-- Attribute Values for Temperature Control -->
    <record id="value_temp_yes" model="logistics.transport.attribute.value">
        <field name="name">Да</field>
        <field name="attribute_id" ref="attr_temperature_control"/>
        <field name="sequence">10</field>
        <field name="active">True</field>
    </record>
    
    <record id="value_temp_no" model="logistics.transport.attribute.value">
        <field name="name">Нет</field>
        <field name="attribute_id" ref="attr_temperature_control"/>
        <field name="sequence">20</field>
        <field name="active">True</field>
    </record>

    <!-- Vehicle Types Demo Data - Обновление старых записей -->
    <record id="vehicle_type_truck" model="logistics.vehicle.type">
        <field name="name">Контейнеровоз</field>
        <field name="transport_category_id" ref="transport_cat_auto"/>
        <field name="loading_type_id" ref="loading_type_container"/>
        <field name="active">True</field>
    </record>
    
    <record id="vehicle_type_train" model="logistics.vehicle.type">
        <field name="name">ЖД Платформа</field>
        <field name="transport_category_id" ref="transport_cat_rail"/>
        <field name="loading_type_id" ref="loading_type_container"/>
        <field name="active">True</field>
    </record>
    
    <record id="vehicle_type_ship" model="logistics.vehicle.type">
        <field name="name">Контейнерное судно</field>
        <field name="transport_category_id" ref="transport_cat_sea"/>
        <field name="loading_type_id" ref="loading_type_container"/>
        <field name="active">True</field>
    </record>
    
    <record id="vehicle_type_barge" model="logistics.vehicle.type">
        <field name="name">Контейнерная баржа</field>
        <field name="transport_category_id" ref="transport_cat_river"/>
        <field name="loading_type_id" ref="loading_type_container"/>
        <field name="active">True</field>
    </record>
    
    <!-- Дополнительные специализированные типы -->
    <record id="vehicle_type_dump_truck" model="logistics.vehicle.type">
        <field name="name">Самосвал</field>
        <field name="transport_category_id" ref="transport_cat_auto"/>
        <field name="loading_type_id" ref="loading_type_bulk"/>
        <field name="active">True</field>
    </record>
    
    <record id="vehicle_type_tank_truck" model="logistics.vehicle.type">
        <field name="name">Автоцистерна</field>
        <field name="transport_category_id" ref="transport_cat_auto"/>
        <field name="loading_type_id" ref="loading_type_liquid"/>
        <field name="active">True</field>
    </record>
    
    <record id="vehicle_type_rail_hopper" model="logistics.vehicle.type">
        <field name="name">ЖД Хоппер</field>
        <field name="transport_category_id" ref="transport_cat_rail"/>
        <field name="loading_type_id" ref="loading_type_bulk"/>
        <field name="active">True</field>
    </record>
    
    <record id="vehicle_type_rail_tank" model="logistics.vehicle.type">
        <field name="name">ЖД Цистерна</field>
        <field name="transport_category_id" ref="transport_cat_rail"/>
        <field name="loading_type_id" ref="loading_type_liquid"/>
        <field name="active">True</field>
    </record>

    <!-- Transport Attribute Lines Demo Data -->
    <record id="truck_max_weight" model="logistics.transport.attribute.line">
        <field name="vehicle_type_id" ref="vehicle_type_truck"/>
        <field name="attribute_id" ref="attr_max_weight"/>
        <field name="value_ids" eval="[(6, 0, [ref('value_30t')])]"/>
    </record>
    
    <record id="dump_truck_max_weight" model="logistics.transport.attribute.line">
        <field name="vehicle_type_id" ref="vehicle_type_dump_truck"/>
        <field name="attribute_id" ref="attr_max_weight"/>
        <field name="value_ids" eval="[(6, 0, [ref('value_25t')])]"/>
    </record>
    
    <record id="train_max_weight" model="logistics.transport.attribute.line">
        <field name="vehicle_type_id" ref="vehicle_type_train"/>
        <field name="attribute_id" ref="attr_max_weight"/>
        <field name="value_ids" eval="[(6, 0, [ref('value_30t')])]"/>
    </record>
    
    <record id="rail_hopper_max_weight" model="logistics.transport.attribute.line">
        <field name="vehicle_type_id" ref="vehicle_type_rail_hopper"/>
        <field name="attribute_id" ref="attr_max_weight"/>
        <field name="value_ids" eval="[(6, 0, [ref('value_70t')])]"/>
    </record>
    
    <record id="ship_max_weight" model="logistics.transport.attribute.line">
        <field name="vehicle_type_id" ref="vehicle_type_ship"/>
        <field name="attribute_id" ref="attr_max_weight"/>
        <field name="value_ids" eval="[(6, 0, [ref('value_5000t')])]"/>
    </record>

    <!-- Container Types Demo Data -->
    <record id="container_20ft_dry" model="logistics.container.type">
        <field name="name">20ft Сухой контейнер</field>
        <field name="container_category">dry</field>
        <field name="max_payload">28200</field>
        <field name="active">True</field>
    </record>
    
    <record id="container_40ft_dry" model="logistics.container.type">
        <field name="name">40ft Сухой контейнер</field>
        <field name="container_category">dry</field>
        <field name="max_payload">30480</field>
        <field name="active">True</field>
    </record>
    
    <record id="container_40ft_reefer" model="logistics.container.type">
        <field name="name">40ft Рефрижераторный</field>
        <field name="container_category">reefer</field>
        <field name="max_payload">27700</field>
        <field name="active">True</field>
    </record>
    
    <record id="container_tank" model="logistics.container.type">
        <field name="name">Танк-контейнер 20ft</field>
        <field name="container_category">tank</field>
        <field name="max_payload">24000</field>
        <field name="active">True</field>
    </record>
    
    <record id="container_bulk" model="logistics.container.type">
        <field name="name">Контейнер для сыпучих грузов</field>
        <field name="container_category">bulk</field>
        <field name="max_payload">25000</field>
        <field name="active">True</field>
    </record>



    <!-- Compatibility Rules Demo Data -->
    <record id="compatibility_general_truck_dry" model="logistics.compatibility">
        <field name="cargo_type">general</field>
        <field name="vehicle_type_id" ref="vehicle_type_truck"/>
        <field name="container_type_id" ref="container_20ft_dry"/>
        <field name="active">True</field>
    </record>
    
    <record id="compatibility_containerized_truck" model="logistics.compatibility">
        <field name="cargo_type">containerized</field>
        <field name="vehicle_type_id" ref="vehicle_type_truck"/>
        <field name="container_type_id" ref="container_40ft_dry"/>
        <field name="active">True</field>
    </record>
    
    <record id="compatibility_bulk_train" model="logistics.compatibility">
        <field name="cargo_type">bulk_dry</field>
        <field name="vehicle_type_id" ref="vehicle_type_train"/>
        <field name="container_type_id" ref="container_bulk"/>
        <field name="active">True</field>
    </record>
    
    <record id="compatibility_refrigerated_ship" model="logistics.compatibility">
        <field name="cargo_type">refrigerated</field>
        <field name="vehicle_type_id" ref="vehicle_type_ship"/>
        <field name="container_type_id" ref="container_40ft_reefer"/>
        <field name="active">True</field>
    </record>
    
    <record id="compatibility_liquid_tank_truck" model="logistics.compatibility">
        <field name="cargo_type">bulk_liquid</field>
        <field name="vehicle_type_id" ref="vehicle_type_truck"/>
        <field name="container_type_id" ref="container_tank"/>
        <field name="active">True</field>
    </record>

</odoo>