odoo/addons/account_tax_cash_basis/views/account_tax_views.xml

15 lines
765 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_tax_form_cash_basis_inherit" model="ir.ui.view">
<field name="name">tax.form.cash.basis.inherit</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_tax_form"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='advanced_booleans']" position="inside">
<field name="use_cash_basis" attrs="{'invisible':[('amount_type','=', 'group')]}"/>
<field name="cash_basis_account" attrs="{'invisible': [('use_cash_basis', '=', False)], 'required': [('use_cash_basis', '=', True)]}"/>
</xpath>
</field>
</record>
</odoo>