Odoo Help


Record Rule for Employee

on 9/1/14, 9:32 AM 1,490 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!!!!


Any suggestion please?

on 9/2/14, 8:35 AM

Please give the complete information of your custom record rule.

René Schuster
on 9/2/14, 8:44 AM

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

on 9/3/14, 1:03 AM

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

René Schuster
on 9/3/14, 3:51 AM

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

on 9/3/14, 4:13 AM

Anil R. Kesariya

--Anil R. Kesariya--
| 7 6 8
Rajkot, India
--Anil R. Kesariya--

Odoo Techno Functional Expert

* Engaged with odoo since May - 2012.

* Customise existing module or develop new module base on customer requirement.

* Played key developer role in many past and running projects.

* Expert in requirement gathering of business and transforming requirement into odoo platform.

* Major expertise in core modules, database, report development and theme development.

* Integration expert.

Linkedin  : https://in.linkedin.com/in/anil-kesariya-97b20a66

Anil R. Kesariya
On 9/2/14, 8:35 AM

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.

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.

on 9/3/14, 1:02 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)


Asked: 9/1/14, 9:32 AM
Seen: 1490 times
Last updated: 3/16/15, 8:10 AM