-
- Downloads
[FIX] hr_holidays: ignore unconfirmed leaves in current leave status
As of this commit, only confirmed leaves will be considered when computing the current leave or absence of an employee. Additionally, a bug in the is_absent search implementation was fixed: before this commit, the same results were returned for absent and non-absent searches. opw-2877328 closes odoo/odoo#118475 X-original-commit: 37f2fc5c Signed-off-by:Kevin Baptiste <kba@odoo.com> Signed-off-by:
De Caluwé Tom (tdc) <tdc@odoo.com>
Showing
- addons/hr_holidays/models/hr_employee.py 8 additions, 4 deletionsaddons/hr_holidays/models/hr_employee.py
- addons/hr_holidays/models/res_users.py 1 addition, 1 deletionaddons/hr_holidays/models/res_users.py
- addons/hr_holidays/tests/test_leave_requests.py 46 additions, 1 deletionaddons/hr_holidays/tests/test_leave_requests.py
- addons/hr_holidays/tests/test_res_partner.py 10 additions, 8 deletionsaddons/hr_holidays/tests/test_res_partner.py
- addons/test_discuss_full/tests/test_performance.py 12 additions, 11 deletionsaddons/test_discuss_full/tests/test_performance.py
Loading
Please register or sign in to comment