[IMP] base: improve search on res.partner tags to include parent tags
When using the 'tag' quicksearch on the contacts, it should search on the parent tags as well. It is what users expect from this kind of search. Using child_of is considered valid here as people should not have a huge list of nested categories / tags. Even a famous production db like Odoo does not have more than 215 of them. Related Task ID: 1903699 closes #30733 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
committed by
Thibault Delavallée
parent
916639de6a
commit
8f1db5bbdf
@@ -467,7 +467,7 @@
|
||||
<filter string="Vendors" name="supplier" domain="[('supplier','=',True), ('parent_id', '=', False)]"/>
|
||||
<filter string="Archived" name="inactive" domain="[('active','=',False)]"/>
|
||||
<separator/>
|
||||
<field name="category_id" string="Tag" filter_domain="[('category_id','ilike', self)]"/>
|
||||
<field name="category_id" string="Tag" filter_domain="[('category_id','child_of', self)]"/>
|
||||
<field name="user_id"/>
|
||||
<field name="phone" filter_domain="['|',('phone','ilike',self),('mobile','=',self)]"/>
|
||||
<group expand="0" name="group_by" string="Group By">
|
||||
|
||||
Reference in New Issue
Block a user