How do I access the department_id through the user.id on a domain filter?
I created a rule with Leave as the object. My goal is to have the user see leaves only from employees of his/her department. I see that an employee is connected to the user by user.id and employee contains the field department_id.
None of the following domain filters worked:
[('department_id','=',user.id.employee_id.department_id)]
[('department_id','=',['employee_id.user_id','=',user.id,'.','department_id'])]
[('department_id','=','employee_id.user_id')]