odoo/odoo#261963

Created by Fun HR, Jurgen Gjini (jugj)
Merged at 522af3f3b828ef43fe5a69d481d74941d41f4ed7

Statuses:

label
odoo-dev:saas-19.2-hr-holidays-fix-get-leaves-domain-jugj
head
3a80e00b2a2a2d93aa86d1adc05ec8c5f4c89d49
merged
3 days ago by Platform, Pierre Masereel (pim)
odoo/odoo
saas-19.2 #261963
saas-19.3 #262083
master #262093

[FIX] hr_holidays: Fix domain of _get_leaves_from_vals

Currently if we have 2 versions on the same contract dates, we check leaves from the contract_start_date, instead of the version date. Meaning if we only have versions on 1 contract date, we will recalculate ALL the leaves all the time. This should not be the case.