Odoo Help

1

How to create rule to display only subordinates leave records in openerp

By
Vaibhav
on 7/26/13, 4:40 AM 2,493 views

Hie,

How to create rule to display only subordinates leave records in openerp

Example, Ram is Manager of A,B,C, Employees John is Manager of X,Y,Z, Employees

Ram and John Has related users with Access Rights Officer/Manager

If Ram Is logged in He can Approve Leave Request, Approve Timesheet of X,Y,Z employees also,

Default Functinality:

   Default Rule for Human Resource Officer is for Leaveor hr_holidays is [(1=1)]

I tried with following Rule

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

But This will not work Help me to resolve this issue

Thank You In ADVNC :)

I am facing the same issue. Any updates ?

JK
on 2/13/14, 6:48 AM

i did test this and works fine, so make sure again that you are applying record rule on leave object.

Turkesh Patel (tpa)
on 2/13/14, 7:35 AM

@Turky, It worked. Thank you.

JK
on 2/14/14, 7:49 AM

But the HR/Officer users can apply and approve their on leave request. Is there anyway we can restrict that ?

JK
on 2/14/14, 7:50 AM
0
Davide
On 5/29/14, 2:22 AM

Use the module community hr.holidays.extension

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

5 follower(s)

Stats

Asked: 7/26/13, 4:40 AM
Seen: 2493 times
Last updated: 3/16/15, 8:10 AM