Access error while creating leave request in Odoo11.
I have written following rule in employee profile to restrict employee subordinate hierarchy view:
[('id', 'child_of', [employee.id for employee in user.employee_ids])]
Odoo access error
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: hr.employee, Operation: read)
is showing while creating leave request by an employee. From the log, I understood that error occurs because of Odoo trying to access manager of the employee. No warning message is showing while accessing employee profile.
Please help me to sort out this issue.