Skip to Content
Menú
This question has been flagged
1 Respondre
8562 Vistes

How can I edit the search view to search in all fields (Name, City, ZIP, e.g.) of my contacts?

Avatar
Descartar
Autor Best Answer

Create an inherited view of the res.partner.select view and add one line per field that you like to search. For example:

<?xml version="1.0"?>
<filter string="Country" position="after">
<filter string="City" context="{'group_by': 'city'}"/>
<field name="street" filter_domain="[('street','ilike',self)]"/>
<field name="zip" filter_domain="[('zip','ilike',self)]"/>
<field name="city" filter_domain="[('city','ilike',self)]"/>
<field name="comment" filter_domain="[('comment','ilike',self)]"/>
</filter>
Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de jul. 23
1816
2
d’abr. 21
15335
0
de des. 16
2477
5
d’oct. 16
12349
2
de nov. 15
10477