I have a domain in window action. I want to filter the data by this domain, and I need to acccees another field of currently logged user some like this (uid.branch_ids.ids) and use this field in the domain. I don't know how to do it Here is my code:
"domain">[('type', '=', 'out_invoice'),('invoice_line_ids.branch_id', 'in', uid.branch_ids.ids)]
when I run this code gives me this error: object has no attribute 'branch_ids', but I have the branch_ids in my res.users model