<?xml version="1.0"?>
<form string="Account Tax Template">
                    <sheet>
                        <group name="main_group">
                            <group>
                                <field name="name"/>
                            </group>
                            <group>
                                <field name="type_tax_use"/>
                            </group>
                        </group>
                        <notebook>
                            <page name="definition" string="Definition">
                                <group name="tax_definitions">
                                    <group>
                                        <field name="amount_type"/>
                                        <label for="amount" attrs="{'invisible':[('amount_type','=', 'group')]}"/>
                                        <div attrs="{'invisible':[('amount_type','=', 'group')]}">
                                            <field name="amount" class="oe_inline"/>
                                            <span class="o_form_label oe_inline" attrs="{'invisible':[('amount_type','=','fixed')]}">%</span>
                                        </div>
                                    </group>
                                </group>
                                <field name="children_tax_ids" attrs="{'invisible':['|', ('amount_type','!=','group'), ('type_tax_use','=','none')]}" domain="[('type_tax_use','in',('none',type_tax_use)), ('amount_type','!=','group')]">
                                    <tree string="Children Taxes">
                                        <field name="sequence" widget="handle"/>
                                        <field name="name"/>
                                        <field name="amount_type"/>
                                        <field name="amount"/>
                                    </tree>
                                </field>
                            </page>
                            <page name="advanced_options" string="Advanced Options">
                                <group name="advanced_definitions">
                                    <group>
                                        <field name="description" attrs="{'invisible':[('amount_type','=', 'group')]}"/>
                                        <field name="analytic" attrs="{'invisible':[('amount_type','=', 'group')]}" groups="analytic.group_analytic_accounting"/>
                                    </group>
                                    <group name="price_definitions">
                                        <field name="price_include" attrs="{'invisible':[('amount_type','=', 'group')]}"/>
                                        <field name="include_base_amount" attrs="{'invisible':[('amount_type','=', 'group')]}"/>
                                        <field name="is_base_affected" attrs="{'invisible': ['|', ('amount_type','=', 'group'), ('price_include', '=', True)]}"/>
                                    </group>
                                    <group name="tax_configuration">
                                        <field name="active" groups="base.group_no_one"/>
                                        <field name="tax_exigibility" widget="radio" attrs="{'invisible':[('amount_type','=', 'group')]}"/>
                                        <field name="cash_basis_transition_account_id" attrs="{'invisible': [('tax_exigibility', '=', 'on_invoice')], 'required': [('tax_exigibility', '=', 'on_payment')]}"/>
                                    </group>
                                </group>
                            </page>
                        </notebook>
                    </sheet>
                </form>
            