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

    <!-- Демо стадии CRM -->
    <record id="demo_crm_stage_new" model="crm.stage">
        <field name="name">Новый</field>
        <field name="sequence">1</field>
    </record>

    <record id="demo_crm_stage_qualified" model="crm.stage">
        <field name="name">Квалифицирован</field>
        <field name="sequence">2</field>
    </record>

    <record id="demo_crm_stage_proposition" model="crm.stage">
        <field name="name">Предложение</field>
        <field name="sequence">3</field>
    </record>

    <record id="demo_crm_stage_won" model="crm.stage">
        <field name="name">Выиграно</field>
        <field name="sequence">4</field>
        <field name="is_won">True</field>
    </record>

    <!-- Демо сделки CRM -->
    <record id="demo_crm_lead_1" model="crm.lead">
        <field name="type">opportunity</field>
        <field name="name">Редизайн сайта</field>
        <field name="contact_name">Алиса Мартин</field>
        <field name="partner_name">TechCorp LLC</field>
        <field name="email_from">alice.martin@techcorp.example.com</field>
        <field name="phone">+1 555 100 2000</field>
        <field name="expected_revenue">15000</field>
        <field name="priority">1</field>
        <field name="stage_id" ref="demo_crm_stage_qualified"/>
    </record>

    <record id="demo_crm_lead_2" model="crm.lead">
        <field name="type">opportunity</field>
        <field name="name">Внедрение ERP</field>
        <field name="contact_name">Боб Джонсон</field>
        <field name="partner_name">Global Industries</field>
        <field name="email_from">bob.johnson@globalind.example.com</field>
        <field name="phone">+1 555 200 3000</field>
        <field name="expected_revenue">50000</field>
        <field name="priority">2</field>
        <field name="stage_id" ref="demo_crm_stage_proposition"/>
    </record>

    <record id="demo_crm_lead_3" model="crm.lead">
        <field name="type">lead</field>
        <field name="name">Миграция в облако</field>
        <field name="contact_name">Кэрол Уайт</field>
        <field name="partner_name">StartupXYZ</field>
        <field name="email_from">carol@startupxyz.example.com</field>
        <field name="phone">+1 555 300 4000</field>
        <field name="expected_revenue">8000</field>
        <field name="priority">0</field>
        <field name="stage_id" ref="demo_crm_stage_new"/>
    </record>

</odoo>
