[FIX] account: taxes configuration, default filter instead of domain
Convert the domain to display only the sale / purchase taxes in the taxes list to a default filter doing the same thing, but which give the possibility to remove the filter and see taxes with the scope `None`. opw-670737
This commit is contained in:
@@ -878,8 +878,8 @@
|
||||
<search string="Search Taxes">
|
||||
<field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<filter string="Sale" domain="[('type_tax_use','=','sale')]" />
|
||||
<filter string="Purchase" domain="[('type_tax_use','=','purchase')]" />
|
||||
<filter string="Sale" name="sale" domain="[('type_tax_use','=','sale')]" />
|
||||
<filter string="Purchase" name="purchase" domain="[('type_tax_use','=','purchase')]" />
|
||||
<group string="Group By">
|
||||
<filter string="Company" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
||||
<filter string="Tax Application" domain="[]" context="{'group_by':'type_tax_use'}"/>
|
||||
@@ -954,7 +954,8 @@
|
||||
<field name="res_model">account.tax</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="domain">[('type_tax_use', '!=', 'none')]</field>
|
||||
<field name="domain" eval="False"/> <!-- Force empty -->
|
||||
<field name="context">{'search_default_sale': True, 'search_default_purchase': True}</field>
|
||||
<field name="view_id" ref="view_tax_tree"/>
|
||||
</record>
|
||||
<menuitem action="action_tax_form" id="menu_action_tax_form" parent="account_account_menu" sequence="1"/>
|
||||
|
||||
Reference in New Issue
Block a user