account-closing/account_cutoff_base/views/account_tax.xml

28 lines
1.1 KiB
XML
Raw Normal View History

2021-04-28 14:52:58 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2013-2021 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
-->
<flectra>
<record id="view_tax_form" model="ir.ui.view">
<field name="name">account.cutoff.accrual.view_tax_form</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_tax_form" />
<field name="arch" type="xml">
<field name="tax_group_id" position="after">
<field
name="account_accrued_revenue_id"
attrs="{'invisible': [('type_tax_use', '=', 'purchase')]}"
domain="[('company_id', '=', company_id)]"
/>
<field
name="account_accrued_expense_id"
attrs="{'invisible': [('type_tax_use', '=', 'sale')]}"
domain="[('company_id', '=', company_id)]"
/>
</field>
</field>
</record>
</flectra>