Odoo Help


This community 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.


Search View: How to search all fields of contacts?

Robert Klüsener
on 9/9/13, 10:42 AM 1,252 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)]"/>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 9/9/13, 10:42 AM
Seen: 1252 times
Last updated: 3/16/15, 8:10 AM