Odoo Help

Welcome!

This community 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.

2

Allow Employees to only aceess their own employee directory

By
Kingarjun
on 11/25/13, 2:06 AM 598 views

I need an record rule for Allow Employees to only aceess their own employee directory. So I have used this rule

 ['|',('user_id','=',user.id),('user_id','=',False)]

It working fine when employee login he can see only his own employee directory . But the issue is when he tried to create any request for example Leave request an error occuring

(self._description, operation)) except_orm: (u'Access Denied', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Documen t type: Employee, Operation: read)') 2013-11-25 05:55:11,394 6052 ←[1;31m←[1;49mERROR←[0m temp openerp.netsvc: Access Denied The requested operation cannot be completed due to security restrictions. Please contact your system administrator.

When remove the record rule everything works fine , what is the issue ?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/25/13, 2:06 AM
Seen: 598 times
Last updated: 3/16/15, 8:10 AM