<?xml version="1.0"?>
<tree string="Pricelist Rules" editable="bottom">
                <!-- Scope = coming from a product/product template -->
                <field name="pricelist_id" string="Pricelist" options="{'no_create_edit':1, 'no_open': 1}"/>
                <field name="name" string="Applied On"/>
                <field name="company_id" invisible="1"/>
                <field name="categ_id" invisible="1"/>
                <field name="product_tmpl_id" invisible="context.get('active_model')!='product.category'" attrs="{'required': [('applied_on', '=', '1_product')]}" domain="[('categ_id', '=', context.get('default_categ_id', True)), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" options="{'no_create_edit':1, 'no_open': 1}"/>
                <field name="product_id" groups="product.group_product_variant" invisible="context.get('product_without_variants', False)" readonly="context.get('active_model')=='product.product'" attrs="{'required': [('applied_on', '=', '0_product_variant')]}" domain="['|', '|',                     ('id', '=', context.get('default_product_id', 0)),                     ('product_tmpl_id', '=', context.get('default_product_tmpl_id', 0)),                     ('categ_id', '=', context.get('default_categ_id', 0)), '|', ('company_id', '=', company_id), ('company_id', '=', False)                   ]" options="{'no_create_edit':1, 'no_open': 1}"/>
                <field name="min_quantity" colspan="4"/>
                <field name="currency_id" invisible="1"/>
                <field name="fixed_price" string="Price" required="1"/>
                <field name="date_start" optional="show"/>
                <field name="date_end" optional="show"/>
                <field name="applied_on" invisible="1"/>
                <field name="company_id" groups="base.group_multi_company" optional="show" options="{'no_create':1, 'no_open': 1}"/>
            </tree>
        