diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-03-01 16:19:32 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-03-19 09:35:31 +0100 |
| commit | f3748481ee2ae271935e2d1ecce0a76cc4293ac9 (patch) | |
| tree | 3100c95d25d16c51de8160d6515be14e310d501f /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | aec13abc18d18668babfb06b71f7fbbacc631fe4 (diff) | |
[FIX] hr_payroll: Fix contract access to approve leave
When a `hr.leave` is approved, a `resource.calendar.leave`
is created in the employee's calendar and in the
contract's calendar if it's different.
However, a user in `group_holiday_user` but not in
`group_hr_contract_manager` does not have access rights
to read a contract.
This leads to an `AccessError`
Fix: use `sudo` to read the contract.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
