<?xml version="1.0"?>
<list 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="product_id" groups="product.group_product_variant" readonly="context.get('active_model') == 'product.product'" column_invisible="context.get('product_without_variants', False)" 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)                     ]" placeholder="All variants" options="{'no_create_edit':1, 'no_open': 1}"/>
                <field name="company_id" column_invisible="True"/>
                <field name="categ_id" column_invisible="True"/>
                <field name="product_tmpl_id" column_invisible="context.get('active_model') != 'product.category'" 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="fixed_price" widget="monetary" string="Price" options="{'currency_field': 'currency_id', 'field_digits': True}" required="1"/>
                <field name="min_quantity" colspan="4"/>
                <field name="currency_id" column_invisible="True"/>
                <field name="date_start" optional="show"/>
                <field name="date_end" optional="show"/>
                <field name="applied_on" column_invisible="True"/>
                <field name="company_id" groups="base.group_multi_company" optional="hide" options="{'no_create':1, 'no_open': 1}"/>
            </list>
        