Skip to Content
Menu
This question has been flagged
1 Atsakyti
8673 Rodiniai

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

Portretas
Atmesti
Autorius 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>
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
liep. 23
1896
2
bal. 21
15475
0
gruod. 16
2584
5
spal. 16
12438
2
lapkr. 15
10626