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

        <!-- Демо правило валидации для счетов (account.move) -->
        <record id="demo_tier_definition_invoice" model="tier.definition">
            <field name="name">Согласование счёта руководителем</field>
            <field name="model_id" ref="account.model_account_move"/>
            <field name="review_type">individual</field>
            <field name="reviewer_id" ref="base.user_admin"/>
            <field name="definition_type">domain</field>
            <field name="definition_domain">[('move_type', '=', 'out_invoice'), ('amount_total', '&gt;', 100000)]</field>
            <field name="sequence">10</field>
            <field name="company_id" ref="base.main_company"/>
            <field name="notify_on_create" eval="True"/>
            <field name="notify_on_pending" eval="True"/>
        </record>

    </data>
</odoo>
