Skip to content

[FIX] hr_holidays: New time off request crashed when listing time off type#5148

Open
covey-odoo wants to merge 1 commit into
master-hr-onboarding-coveyfrom
master-time_off-traceback_on_time_off_type-covey
Open

[FIX] hr_holidays: New time off request crashed when listing time off type#5148
covey-odoo wants to merge 1 commit into
master-hr-onboarding-coveyfrom
master-time_off-traceback_on_time_off_type-covey

Conversation

@covey-odoo
Copy link
Copy Markdown

When requesting a new time off, the form view required the time type to be selected. If the user listed the time off types the app would crash. The search setup for that list required a validation function to run which held a bug.

@robodoo
Copy link
Copy Markdown

robodoo commented May 6, 2026

This PR targets the un-managed branch odoo-dev/odoo:master-hr-onboarding-covey, it needs to be retargeted before it can be merged.

@SaraBriki
Copy link
Copy Markdown

Thanks for your work 😄 It looks good to me!

Just one small change in the PR description -especially the commit message which is more important, as future developers will read it directly through git blame and it should be technically clear-; you could add details about the bug (a traceback caused by a missing argument, for instance). Also don't hesitate to follow the Git Guidelines for the commit title and body (missing module name in the title and task ID at the end).

Please amend the commit message and the PR description and we're good to go ;)

@covey-odoo covey-odoo force-pushed the master-time_off-traceback_on_time_off_type-covey branch from 5786e85 to 444d0f2 Compare May 13, 2026 11:37
@covey-odoo covey-odoo changed the title [FIX] New time off request crashed when listing time off type [FIX] hr_holidays: New time off request crashed when listing time off type May 13, 2026
… type

When requesting a new time off, the form view required the time type to
be selected. If the user listed the time off types the app would crash.
The search setup for that list required a validation function to run
which held a bug.

_search_virtual_remaining_leaves uses op (function to compare values,
here >=). Function op requires two arguments to work, only 1 was given,
causing the code to fail.

task-6193474
@covey-odoo covey-odoo force-pushed the master-time_off-traceback_on_time_off_type-covey branch from 444d0f2 to b15472c Compare May 13, 2026 14:01
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