<?xml version="1.0" encoding="utf-8" ?>
<!-- # Copyright 2020 Ecosoft (http://ecosoft.co.th)
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="tier_definition_view_form" model="ir.ui.view">
        <field name="name">tier.definition.form</field>
        <field name="model">tier.definition</field>
        <field name="inherit_id" ref="base_tier_validation.tier_definition_view_form" />
        <field name="arch" type="xml">
            <xpath expr="//page[@name='options']/group" position="inside">
                <group name="server_action">
                    <field name="server_action_id" />
                    <field name="rejected_server_action_id" />
                    <field name="auto_validate" />
                    <field
                        name="auto_validate_domain"
                        string="if pass condition"
                        widget="domain"
                        options="{'model': 'model'}"
                        attrs="{'invisible': [('auto_validate', '=', False)]}"
                    />
                </group>
            </xpath>
        </field>
    </record>
</odoo>
