Odoo Help


Search View: How to search all fields of contacts?

Robert Klüsener
on 9/9/13, 10:42 AM 2,236 views

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

Robert Klüsener
On 9/11/13, 4:53 PM

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)]"/>

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/9/13, 10:42 AM
Seen: 2236 times
Last updated: 1/18/17, 4:51 AM