The requested operation cannot be completed due to security restrictions
I have created new add-on as like as survey add-on. Module consist 3 level of groups,
- Head Manager(admin)
- Manager
- User
If i am logged in as a manager and print the report, i am getting below warning,
"AccessError: ('AccessError', u'The requested operation cannot be completed due to security restrictions.
Please contact your system administrator.\n\n(Document type: res.partner, Operation: read)') "
My rules are:
Manager:
Custom Survey Manager
Survey Manager access rights
[(1, '=', 1)]
Partner Form Security:
Access to the manager to list related partners
[('create_uid', '=', user.id)]
If the manager is logged-in, i would like to list the partner who is created by the current manager. That's why i added the partner rule.
How to solve this issue?