Skip to content

[FIX] hr_holidays: fix traceback on time off type#5174

Open
manalelk wants to merge 1 commit into
master-hr-onboarding-maelkfrom
master-hr-onboarding-traceback_on_time_off_type-maelk
Open

[FIX] hr_holidays: fix traceback on time off type#5174
manalelk wants to merge 1 commit into
master-hr-onboarding-maelkfrom
master-hr-onboarding-traceback_on_time_off_type-maelk

Conversation

@manalelk

@manalelk manalelk commented Jun 4, 2026

Copy link
Copy Markdown

There was an error when selecting a Time Off Type with existing allocations.

Step to reproduce:

  • Create and validate an allocation for a Time Off Type that requires allocations
  • Open this Time Off Type and create a new Time Off request from the smart button
  • In the creation popup, click on the 'Time off Type' field
  • A traceback is raised: TypeError: gt expected 2 arguments, got 1

Reason:
The search method for virtual_remaining_leaves was missing a required parameter

Solution:
Pass the missing value parameter when calling op()

Task-6276095

@robodoo

robodoo commented Jun 4, 2026

Copy link
Copy Markdown

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

@manalelk manalelk force-pushed the master-hr-onboarding-traceback_on_time_off_type-maelk branch 3 times, most recently from daff310 to 262fce3 Compare June 9, 2026 07:47

@arpi-odoo arpi-odoo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

In the commit message and PR description, the last step of "steps to reproduce" should be a short description of the traceback/error that you should get by following the steps.
Otherwise, code-wise, everything looks good to me ! Nice work !

@manalelk manalelk force-pushed the master-hr-onboarding-traceback_on_time_off_type-maelk branch from 262fce3 to 940ae93 Compare June 9, 2026 14:07
There was an error when selecting a Time Off Type with existing allocations.

Step to reproduce:
- Create and validate an allocation for a Time Off Type that requires allocations
- Open this Time Off Type and create a new Time Off request from the smart button
- In the creation popup, click on the 'Time off Type' field
- A traceback is raised: TypeError: gt expected 2 arguments, got 1

Reason:
The search method for virtual_remaining_leaves was missing a required parameter

Solution:
Pass the missing value parameter when calling op()

Task-6276095
@manalelk manalelk force-pushed the master-hr-onboarding-traceback_on_time_off_type-maelk branch from 940ae93 to 8d817bd Compare June 9, 2026 14:08
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