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.

1

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

By
Vaibhav
on 7/26/13, 4:40 AM 2,295 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

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

5 follower(s)

Stats

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