<data><field name="invoice_policy" position="attributes">
                <attribute name="invisible" separator="or" add="type == 'service'"/>
            </field>
            <field name="service_tracking" position="attributes">
                <attribute name="invisible" remove="1" separator="or"/>
            </field>
            <field name="service_tracking" position="after">
                <div class="o_td_label d-inline-flex" invisible="service_tracking != 'task_global_project'">
                    <label for="project_id"/>
                </div>
                <field name="project_id" context="{'default_allow_billable': True}" invisible="service_tracking != 'task_global_project'" nolabel="1" placeholder="Defined on quotation"/>
                <div class="o_td_label d-inline-flex" invisible="service_tracking not in ['task_in_project', 'project_only']">
                    <label for="project_template_id"/>
                </div>
                <field name="project_template_id" context="{'active_test': False, 'default_allow_billable': True}" invisible="service_tracking not in ['task_in_project', 'project_only']" nolabel="1" placeholder="Empty project"/>
                <field name="service_policy" string="Invoicing Policy" invisible="type != 'service' or sale_ok == False" required="type == 'service' and sale_ok == True"/>
            </field>
        </data>