Skip to Content
Menu
This question has been flagged
2682 Views

Dear all, I created an additional tag for contacts ...

market_tag_ids = fields.Many2many('partner.tags', 'partner_tags_market_tag_rel', 'partner_id', 'market_tag_id', string='Market/s', stored=True)

How can I show all tags from related contacts in the company

e.g. Company AB
contacts in Company AB: John Doe and Jan Doe
John Doe has tags A and B
Jane Doe has tags B and C
IN Company AB I want to show the tags A,B and C (coming from John and Jane)

Anyone who has an idea how to do this?
Something like a search for all partner_id's related to the Company partner_id (key is parent_id) and then look for all relations in partner_tags_market_tag_rel.
Thank you very much.

Avatar
Discard