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

    <!-- Демо контрагенты -->
    <record id="demo_partner_invoice_1" model="res.partner">
        <field name="name">Клиент Альфа</field>
        <field name="email">alpha@demo.example.com</field>
        <field name="phone">+1 555 400 1000</field>
        <field name="customer_rank">1</field>
    </record>

    <record id="demo_partner_invoice_2" model="res.partner">
        <field name="name">Клиент Бета</field>
        <field name="email">beta@demo.example.com</field>
        <field name="phone">+1 555 400 2000</field>
        <field name="customer_rank">1</field>
    </record>

    <record id="demo_partner_vendor_1" model="res.partner">
        <field name="name">Поставщик Гамма</field>
        <field name="email">gamma@demo.example.com</field>
        <field name="phone">+1 555 400 3000</field>
        <field name="supplier_rank">1</field>
    </record>

    <!-- Демо счёт клиенту 1 -->
    <record id="demo_account_move_invoice_1" model="account.move">
        <field name="move_type">out_invoice</field>
        <field name="partner_id" ref="demo_partner_invoice_1"/>
    </record>

    <record id="demo_account_move_invoice_1_line_1" model="account.move.line">
        <field name="move_id" ref="demo_account_move_invoice_1"/>
        <field name="name">Консалтинговые услуги</field>
        <field name="quantity">10</field>
        <field name="price_unit">150.0</field>
    </record>

    <!-- Демо счёт клиенту 2 -->
    <record id="demo_account_move_invoice_2" model="account.move">
        <field name="move_type">out_invoice</field>
        <field name="partner_id" ref="demo_partner_invoice_2"/>
    </record>

    <record id="demo_account_move_invoice_2_line_1" model="account.move.line">
        <field name="move_id" ref="demo_account_move_invoice_2"/>
        <field name="name">Лицензия на ПО</field>
        <field name="quantity">3</field>
        <field name="price_unit">500.0</field>
    </record>

    <record id="demo_account_move_invoice_2_line_2" model="account.move.line">
        <field name="move_id" ref="demo_account_move_invoice_2"/>
        <field name="name">Годовая поддержка</field>
        <field name="quantity">1</field>
        <field name="price_unit">1200.0</field>
    </record>

    <!-- Демо счёт от поставщика -->
    <record id="demo_account_move_bill_1" model="account.move">
        <field name="move_type">in_invoice</field>
        <field name="partner_id" ref="demo_partner_vendor_1"/>
    </record>

    <record id="demo_account_move_bill_1_line_1" model="account.move.line">
        <field name="move_id" ref="demo_account_move_bill_1"/>
        <field name="name">Канцелярские товары</field>
        <field name="quantity">5</field>
        <field name="price_unit">80.0</field>
    </record>

</odoo>
