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

        <!-- Демо партнёр-поставщик для доверенности -->
        <record id="demo_attorney_partner_supplier" model="res.partner">
            <field name="name">ООО "Снабжение Плюс"</field>
            <field name="is_company" eval="True"/>
            <field name="city">Москва</field>
        </record>

        <!-- Демо сотрудник для доверенности -->
        <record id="demo_employee_ivanov" model="hr.employee">
            <field name="name">Иванов Иван Иванович</field>
            <field name="job_title">Менеджер по закупкам</field>
        </record>

        <!-- Демо заказ на закупку -->
        <record id="demo_purchase_order_001" model="purchase.order">
            <field name="partner_id" ref="demo_attorney_partner_supplier"/>
            <field name="date_order">2026-01-15 10:00:00</field>
        </record>

        <!-- Доверенность -->
        <record id="demo_consent_001" model="base.consent">
            <field name="name">ДОВ-2026-001</field>
            <field name="date_from">2026-01-15</field>
            <field name="date_to">2026-07-15</field>
            <field name="partner_id" ref="demo_attorney_partner_supplier"/>
            <field name="employee_id" ref="demo_employee_ivanov"/>
            <field name="purchaseorder_id" ref="demo_purchase_order_001"/>
            <field name="company_id" ref="base.main_company"/>
        </record>

    </data>
</odoo>
