I have a many2one field and I want to add a domain filter to it but I cannot get it to work even though it works as a search filter.
This is how I would like to filter it
[('res_id','=',production_id.id),('res_model','=',production_id._name)]
How can I apply this to a Many2one field?