[IMP] account: add missing sheet and element names for easier xpaths
closes odoo/odoo#34827 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
This commit is contained in:
@@ -1438,56 +1438,58 @@ action = model.setting_init_bank_account_action()
|
||||
<field name="model">account.tax.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Account Tax Template">
|
||||
<group>
|
||||
<group>
|
||||
<field name="name"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="type_tax_use"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Definition">
|
||||
<sheet>
|
||||
<group name="main_group">
|
||||
<group>
|
||||
<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>
|
||||
<field name="name"/>
|
||||
</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 string="Advanced Options">
|
||||
<group>
|
||||
<group>
|
||||
<field name="description" attrs="{'invisible':[('amount_type','=', 'group')]}"/>
|
||||
<field name="analytic" attrs="{'invisible':[('amount_type','=', 'group')]}" groups="analytic.group_analytic_accounting" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="price_include" attrs="{'invisible':[('amount_type','=', 'group')]}" />
|
||||
<field name="include_base_amount" attrs="{'invisible':[('amount_type','=', 'group')]}" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="active" groups="base.group_no_one"/>
|
||||
<field name="tax_exigibility" widget="radio" attrs="{'invisible':[('amount_type','=', 'group')]}"/>
|
||||
<field name="cash_basis_base_account_id" attrs="{'invisible': [('tax_exigibility', '=', 'on_invoice')], 'required': [('tax_exigibility', '=', 'on_payment')]}"/>
|
||||
<field name="cash_basis_transition_account_id" attrs="{'invisible': [('tax_exigibility', '=', 'on_invoice')], 'required': [('tax_exigibility', '=', 'on_payment')]}"/>
|
||||
</group>
|
||||
<field name="type_tax_use"/>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</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')]}" />
|
||||
</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_base_account_id" attrs="{'invisible': [('tax_exigibility', '=', 'on_invoice')], 'required': [('tax_exigibility', '=', 'on_payment')]}"/>
|
||||
<field name="cash_basis_transition_account_id" attrs="{'invisible': [('tax_exigibility', '=', 'on_invoice')], 'required': [('tax_exigibility', '=', 'on_payment')]}"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user