Skip to content

[FIX] hr_holidays: Fix domain of _get_leaves_from_vals#261963

Closed
jugj-odoo wants to merge 1 commit intoodoo:saas-19.2from
odoo-dev:saas-19.2-hr-holidays-fix-get-leaves-domain-jugj
Closed

[FIX] hr_holidays: Fix domain of _get_leaves_from_vals#261963
jugj-odoo wants to merge 1 commit intoodoo:saas-19.2from
odoo-dev:saas-19.2-hr-holidays-fix-get-leaves-domain-jugj

Conversation

@jugj-odoo
Copy link
Copy Markdown
Contributor

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.

@robodoo
Copy link
Copy Markdown
Contributor

robodoo commented Apr 29, 2026

Pull request status dashboard

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.
@jugj-odoo jugj-odoo force-pushed the saas-19.2-hr-holidays-fix-get-leaves-domain-jugj branch from 6db8296 to 3a80e00 Compare April 29, 2026 11:36
@pimodoo
Copy link
Copy Markdown
Collaborator

pimodoo commented Apr 29, 2026

@robodoo r+

@robodoo
Copy link
Copy Markdown
Contributor

robodoo commented Apr 29, 2026

@jugj-odoo @pimodoo 'ci/l10n' failed on this reviewed PR.

robodoo pushed a commit that referenced this pull request Apr 29, 2026
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.

closes #261963

Signed-off-by: Pierre Masereel (pim) <pim@odoo.com>
@robodoo robodoo closed this Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants