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

    <!-- Создаём только product.template — Odoo автоматически создаёт единственный вариант -->
    <!-- В заказах ссылаемся на шаблон через product_template_id или используем -->
    <!-- product_id = product_tmpl_id.product_variant_id (первый и единственный вариант) -->

    <record id="demo_product_software_tmpl" model="product.template">
        <field name="name">Система управления складом WMS Pro</field>
        <field name="default_code">SW-WMS-001</field>
        <field name="list_price">185000.0</field>
        <field name="standard_price">95000.0</field>
        <field name="categ_id" ref="product.product_category_goods"/>
        <field name="type">service</field>
        <field name="invoice_policy">order</field>
        <field name="uom_id" ref="uom.product_uom_unit"/>
    </record>

    <record id="demo_product_license_tmpl" model="product.template">
        <field name="name">Лицензия пользователя WMS Pro (1 год)</field>
        <field name="default_code">SW-LIC-001</field>
        <field name="list_price">24000.0</field>
        <field name="standard_price">8000.0</field>
        <field name="categ_id" ref="product.product_category_goods"/>
        <field name="type">service</field>
        <field name="invoice_policy">order</field>
        <field name="uom_id" ref="uom.product_uom_unit"/>
    </record>

    <record id="demo_product_support_tmpl" model="product.template">
        <field name="name">Техническая поддержка и сопровождение (мес.)</field>
        <field name="default_code">SRV-SUP-001</field>
        <field name="list_price">35000.0</field>
        <field name="standard_price">15000.0</field>
        <field name="categ_id" ref="product.product_category_goods"/>
        <field name="type">service</field>
        <field name="invoice_policy">order</field>
        <field name="uom_id" ref="uom.product_uom_unit"/>
    </record>

    <record id="demo_product_implementation_tmpl" model="product.template">
        <field name="name">Услуги внедрения и настройки системы</field>
        <field name="default_code">SRV-IMP-001</field>
        <field name="list_price">120000.0</field>
        <field name="standard_price">60000.0</field>
        <field name="categ_id" ref="product.product_category_goods"/>
        <field name="type">service</field>
        <field name="invoice_policy">order</field>
        <field name="uom_id" ref="uom.product_uom_unit"/>
    </record>

    <record id="demo_product_server_tmpl" model="product.template">
        <field name="name">Сервер Dell PowerEdge R740</field>
        <field name="default_code">HW-SRV-001</field>
        <field name="list_price">320000.0</field>
        <field name="standard_price">240000.0</field>
        <field name="categ_id" ref="product.product_category_goods"/>
        <field name="type">service</field>
        <field name="invoice_policy">order</field>
        <field name="uom_id" ref="uom.product_uom_unit"/>
    </record>

    <record id="demo_product_training_tmpl" model="product.template">
        <field name="name">Обучение пользователей (группа до 10 чел.)</field>
        <field name="default_code">SRV-TRN-001</field>
        <field name="list_price">45000.0</field>
        <field name="standard_price">20000.0</field>
        <field name="categ_id" ref="product.product_category_goods"/>
        <field name="type">service</field>
        <field name="invoice_policy">order</field>
        <field name="uom_id" ref="uom.product_uom_unit"/>
    </record>

    <record id="demo_product_tovar_tmpl" model="product.template">
        <field name="name">Комплект оборудования для автоматизации</field>
        <field name="default_code">HW-KIT-001</field>
        <field name="list_price">95000.0</field>
        <field name="standard_price">65000.0</field>
        <field name="categ_id" ref="product.product_category_goods"/>
        <field name="type">service</field>
        <field name="invoice_policy">order</field>
        <field name="uom_id" ref="uom.product_uom_unit"/>
    </record>

</data>
</odoo>
