Odoo Help

1

Search View: How to search all fields of contacts?

By
Robert Klüsener
on 9/9/13, 10:42 AM 1,511 views

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

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

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.

Register

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)

Stats

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