Search code examples
odoo-11

How a manager could approve the request of his employees only


I have many managers in the same department and i want that every manager see and approve the requests of his own employees only. How can i resolve this problem ? Any idea please ?


Solution

  • i found the solution i add a record rule with the domain filter

    [ '|',('employee_id.user_id','=',user.id),('employee_id.parent_id.user_id','=',user.id)]
    

    and it works