Odoo Help


How to search for contacts that are linked to a company with a specific tag?

Garth Mathers
on 2/4/15, 12:45 AM 656 views

I am trying to do a search for contacts that are linked to a company record where the company has either a field with a specific value or a specific tag set on it. Can this be done in Odoo v8.0?

I have tried search in the Customers view with a filter for both "Contacts" and "Tag contains My_Tag" and i'm not returning any records. The contacts i am searching for don't have "My_Tag" set on them. Only the companies that they work for have the tag set.

Akhil - i tried your suggestion but i don't find any records. I have edited my question to explain further.....

Garth Mathers
on 2/4/15, 9:04 AM

In tag, are you setting the job roles of contacts?

Akhil P Sivan
on 2/5/15, 1:48 AM
Garth Mathers
On 2/18/15, 9:59 AM

Hello Vasanth

I my database the companies I'm searching for have a tag set called "Veterinary". If i do a search for "Companies" and Tag = "Veterinary", i get a list of all of the Veterinary Companies in the DB. So that part is working OK.

Now, what i'm trying to do is to search for a list of all of the contacts (people) that work for these veterinary companies. These contacts don't have the "Veterinary" tag set on them - but their related companies do have the Veterinary tag set. If i search for "Customers", "persons" and Tag = Veterinary, the search doesn't return any records.

Our old CRM software was able to search contacts for fields and tags on the contact, and for fields and tags on the related companies. This functionality appears to be missing in Odoo.

Basically, what i want to be able to do is to recursively search for contacts based on fields and tags in the companies that they are related to.....




| 5 3 8
Pondicherry, India
On 2/5/15, 2:22 AM


for example you tag is "Retail" means, you can search in the customer search view by using "Customers" ans in the advanced search you can use Tags contains Retail.Please check before your tag is created correctly

On 2/18/15, 1:04 PM


If you search for a company that has no custom field, your research won't give anything.

I would say, you have to create a custom "Related partners" text field that will have company names separated by commas for example.

Once you update the fields in your res_partner database, you will be able to search for companys that work with another company.

Best regards,


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: 2/4/15, 12:45 AM
Seen: 656 times
Last updated: 8/22/17, 3:27 PM