+4 votes
940 views
Hi everyone!

I've created many2many field. I would like to apply domain filter on the many2many field. The field reference is not storing in the master table but it's creating another table and storing the reference ids. May I know how to apply the domain filter on the many2many field with an example.
in Back-end by (3.7k points) | 940 views

1 Answer

+3 votes

you can do a domain like that for example

in  View Xml :

<field
    name="project_type_id"
    domain="[('id', 'in', parent_id.project_type_id.task_ids.ids)]"
    />

by (8.8k points)
205 questions
180 answers
37 comments
220,701 users