Skip to Content
मेन्यू
This question has been flagged
1 Reply
8578 Views

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

Avatar
Discard
Author 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
Discard
Related Posts Replies Views Activity
1
जुल॰ 23
1845
2
अप्रैल 21
15376
0
दिस॰ 16
2507
5
अक्तू॰ 16
12376
2
नव॰ 15
10522