Skip to content

Conversation

@hazemayman1
Copy link

[FIX] hr_holidays: fix traceback bug when selecting leave type

task-5380284

@robodoo
Copy link

robodoo commented Dec 2, 2025

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

@hazemayman1 hazemayman1 force-pushed the master-hr-onboarding-leave_type_bugfix-haabo branch from 4a2a99b to 7899174 Compare December 2, 2025 15:59
Copy link

@arpi-odoo arpi-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is good but you need to change your commit message. For bug fix tasks, we need:

  • Steps to reproduce and bug description
  • Cause of the bug
  • How you fixed it

Also, for bug fixes, we need to add test(s) to prevent the bug from happening again.

Steps to reproduce:

- On the Time Off app go to Configuration -> Time Off Types
- Select any time off type the click the Time Off smart button
- Click new and on the creation form try changing the Time Off type for an employee

Cause of the bug:

- The function that compares the leave type days and the employee's remaining leave days
only gets the leave type days as an input, the other argument is missing

Fix done:

- Passing the input value as the second argument for the op(v1, v2) function

task-5380284
@hazemayman1 hazemayman1 force-pushed the master-hr-onboarding-leave_type_bugfix-haabo branch from 7899174 to 32e47ee Compare December 3, 2025 13:04
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.

4 participants