diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-09-19 13:01:44 +0000 |
|---|---|---|
| committer | Lucas Lefèvre <lul@odoo.com> | 2019-09-19 13:01:44 +0000 |
| commit | fa172f2e4d36e3fa21878430f2480bdb932eada9 (patch) | |
| tree | c071a0282c6d55337c08e0dadd917ac1a5c6f1e8 /doc/reference | |
| parent | b16ce3f89e50aa8589e878bca8378f2dbac3f3f6 (diff) | |
[FIX] hr_holidays: Set leave manager if empty
Currently, when an employee's manager (parent_id) changes,
the leave manager (leave_manager_id) is set to the new manager
if it was not manually changed (leave_manager_id != parent_id.user_id).
Please, note that `parent_id` is an `hr.employee` while `leave_manager_id`
is a `res.users`. Hence if `leave_manager_id` is not set, we have
`leave_manager_id == False`.
Next time we change `parent_id` (employee with a user)
we have `False != parent_id.user_id` and the leave_manager_id
is not set.
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions
