In sale order I have many2one field. model name called 'my.object' for this field I want to add a domain filter.
in res_user I have added many2many field. with same object "my.object".
Now I want add a domain
[('company_id', '=', company_id),('id','in',user_id.myfield_user.ids)]Like this . but it's not working.