diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-03-01 14:30:39 +0000 |
|---|---|---|
| committer | Lucas Lefèvre <lul@odoo.com> | 2019-03-01 14:30:39 +0000 |
| commit | a8ab3063e88537b33b9947971f4e3bf3892d4ced (patch) | |
| tree | 229fcdf79cf8a2a38cbdaafeb389682e5d557951 /addons/web/static/src/js | |
| parent | ec27173d59a048b2cc66523b3fa46c6dae170df0 (diff) | |
[FIX] hr_holidays: Allow Team leader to approve
Currently, a Team leader can't approve a leave of an employee
in his team if the leave type requires an allocation.
The reason is the `ir.rule` for `base.group_user` restricting allocation
read access to only your own allocation (`[('employee_id.user_id', '=', user.id)]`)
There are no `ir.rule` for group Team leader.
Therefore, a team leader can't read allocations for his team members.
Fix: add an `ir.rule` to allow a team leader to read allocations
of employees in his team.
+ add associated tests
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions
