Odoo Help

0

Record Rule for Employee

By
dirtyHandsPHP
on 9/1/14, 9:32 AM 1,028 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?

dirtyHandsPHP
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.

dirtyHandsPHP
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

dirtyHandsPHP
on 9/3/14, 4:13 AM
0

Anil R. Kesariya

--Anil R. Kesariya--
4541
| 6 5 8
Gandhinagar, India
--Anil R. Kesariya--
ERP Consultant

Key Skill
-
Technical & Functional Expert
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.

dirtyHandsPHP
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.

Register

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)

Stats

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