Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I started working with Odoo v.8, and I have a little trouble with the double validation leave and in particular with the validation of the superior/manager. With the double validation, the supervisor/manager and the HR manager must both validate the leave request. In orther for the supervisor to validate, I give him the access right "Officer" in human resources. there he can see leave requests of his subordinates, but the problem is that he can also see requests of all employees in all departments.
I would like to know, how to do so the manager could only see leave requests of employees of which he is responsible.
This requires a rule, access rights, and the employee heirarchy filled out under Human Resources.
- Make a user a manager
- Then when you record a rule set parent.id = manager.user.id
- Also add user.id = manager.user.id
The parent.id is referencing the employee's manager under the Human Resources section. The user.id = manager.user.id is checking if the current user's id matches the manager's id.
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
|Asked: 11/7/16, 5:00 AM|
|Seen: 889 times|
|Last updated: 5/28/18, 6:14 AM|