Skip to Content
Menu
This question has been flagged
1 Reply
5373 Views

Trying to restrict user to edit it's own information only using following Record Rule on Employee Object:

[('user_id','=',user.id)] with Read, Write and Create Access Rights

It worked well for users but due to this, User is not able to make an Leave Request and it's showing following warning message

 

Access Denied

The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

(Document type: Portal employee, Operation: read) 

 

Please help!!!!

 

Avatar
Discard

Any suggestion please?

Please give the complete information of your custom record rule.

Author

Hi Rene....please check in comment section of Anil's answer. Please let me know if you need any other information.

What are model_id, global, and groups of your record rule?

Author

model_id : Employee Global : off Groups : Human Resource/Employee

Best Answer

Write proper question. for which model you are trying to apply record rule?. The warning you are getting on your screen it Access Control error . the user who trying to access portal model but don't have the access for that model. so you need to provide the access in access csv. you can set the portal group from the Access rights for the specific user.

Avatar
Discard
Author

Thanks for reply Anil : I just configured my OpenERP server. I am trying to set Record Rules on Employee Model so that they can change their own information. In ACL Employee is having rights Read, Write and Create. Then i wrote a Record Rule as explained in original question. Please let me know if you need more information on this.