-
- Downloads
[FIX] hr_holidays: remove allocation_id on hr.leave
As part of hr_holidays B2B, the holidays allowances were moved from hr_leave_type to hr_leave_allocation.
This didn't allow to take a leave longer than the maximum duration of an allocation. Also, despite all the
allocations could have enough days for a certain leave, it was not possible to use all available days without
splitting the leaves across the different allocations.
This commit moves the holidays allowance to the hr_leave_type to remediate the issues described above.
task-2834887
closes odoo/odoo#98317
X-original-commit: 8c37d5c7cc397e517c43c1ec13a131b4b35e48b7
Signed-off-by:
phwa-odoo <phwa@odoo.com>
Showing
- addons/hr_holidays/models/hr_leave.py 15 additions, 85 deletionsaddons/hr_holidays/models/hr_leave.py
- addons/hr_holidays/models/hr_leave_allocation.py 2 additions, 3 deletionsaddons/hr_holidays/models/hr_leave_allocation.py
- addons/hr_holidays/models/hr_leave_type.py 180 additions, 66 deletionsaddons/hr_holidays/models/hr_leave_type.py
- addons/hr_holidays/tests/test_company_leave.py 1 addition, 1 deletionaddons/hr_holidays/tests/test_company_leave.py
- addons/hr_holidays/tests/test_leave_requests.py 12 additions, 45 deletionsaddons/hr_holidays/tests/test_leave_requests.py
- addons/hr_holidays/views/hr_leave_allocation_views.xml 1 addition, 1 deletionaddons/hr_holidays/views/hr_leave_allocation_views.xml
- addons/hr_work_entry_holidays/tests/test_performance.py 3 additions, 3 deletionsaddons/hr_work_entry_holidays/tests/test_performance.py
Loading
Please register or sign in to comment