[IMP] account: tax filter
Before this pr, it was not possible to do a search on the description of the taxes. I've added the search filter for the tree view. Also correcting a forgotten "or" in another search view and a missing uppercase. closes odoo/odoo#123773 Task-id: 3332762 X-original-commit: 5e2e52f10131f0de19638c47347dbcc445a8c531 Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
<field name="model">account.tax</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Account Tax">
|
||||
<field name="display_name" string="name"/>
|
||||
<field name="display_name" string="Name"/>
|
||||
<field name="description"/>
|
||||
<field name="invoice_label"/>
|
||||
</tree>
|
||||
@@ -99,6 +99,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<search string="Search Taxes">
|
||||
<field name="name_searchable" string="Name"/>
|
||||
<field name="description"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<filter string="Sale" name="sale" domain="[('type_tax_use','=','sale')]" />
|
||||
<filter string="Purchase" name="purchase" domain="[('type_tax_use','=','purchase')]" />
|
||||
@@ -122,7 +123,7 @@
|
||||
<field name="model">account.tax</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Search Taxes">
|
||||
<field name="name" filter_domain="['|', ('name', 'ilike', self), ('description', 'ilike', self), ('invoice_label', 'ilike', self)]" string="Tax"/>
|
||||
<field name="name" filter_domain="['|', '|', ('name', 'ilike', self), ('description', 'ilike', self), ('invoice_label', 'ilike', self)]" string="Tax"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</search>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user