diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-03-01 15:30:39 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-03-19 09:35:31 +0100 |
| commit | aec13abc18d18668babfb06b71f7fbbacc631fe4 (patch) | |
| tree | d92dfdd15928def9875ad0ffcf6746105b6d5449 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | f1fca6dc81c30135777744750a48b069cbb994f4 (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/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
