Skip to content

[FIX] hr_holidays: Selecting time off type no longer triggers an error when creating a time off request via management - #5254

Open
feraz-odoo wants to merge 1 commit into
master-hr-onboarding-ferazfrom
master-hr-onboarding-timeoff_type_selection_fix-feraz
Open

[FIX] hr_holidays: Selecting time off type no longer triggers an error when creating a time off request via management#5254
feraz-odoo wants to merge 1 commit into
master-hr-onboarding-ferazfrom
master-hr-onboarding-timeoff_type_selection_fix-feraz

Conversation

@feraz-odoo

@feraz-odoo feraz-odoo commented Aug 31, 2026

Copy link
Copy Markdown

Steps to reproduce: Time Off >> Configuration >> Time Off Types >> Open any type, navigate to the Smart button Time Off >> Click on New >> Time Off Type
Reason: Bug was due to the is_valid function calling the operator with only one value instead of two.
Solution: add value to op call

task-6522339

@robodoo

robodoo commented Aug 31, 2026

Copy link
Copy Markdown

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

@usseif97 usseif97 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.

Thanks for your work. The fix is to the point 🎯
Here's how bug-fix tasks are handled
You need to include on the PR description, the bug, steps to reproduce & how it solved
Also you should add a test to ensure that the issue doesn't reappear in the future and you should clearly add the test on the appropriate related test file

Image

@feraz-odoo
feraz-odoo force-pushed the master-hr-onboarding-timeoff_type_selection_fix-feraz branch from c9c0f39 to cb6148c Compare August 31, 2026 13:20
feraz-odoo added a commit that referenced this pull request Aug 31, 2026
when creating a time off request via management
Steps to reproduce: Time Off >> Configuration >> Time Off Types >> Open any type, navigate to the Smart button Time Off >> Click on New >> Time Off Type
Reason: Bug was due to the is_valid function calling the operator with only one value instead of two.
Solution: add value to op call

Closes #5254
task-6522339
@feraz-odoo
feraz-odoo requested a review from usseif97 August 31, 2026 13:20
Comment thread addons/hr_holidays/tests/test_hr_work_entry_type.py

@usseif97 usseif97 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.

Just small comments

Comment thread addons/hr_holidays/tests/test_hr_work_entry_type.py Outdated
@feraz-odoo
feraz-odoo force-pushed the master-hr-onboarding-timeoff_type_selection_fix-feraz branch from cb6148c to 8d661d6 Compare September 1, 2026 07:49
feraz-odoo added a commit that referenced this pull request Sep 1, 2026
when creating a time off request via management
Steps to reproduce: Time Off >> Configuration >> Time Off Types >> Open any type, navigate to the Smart button Time Off >> Click on New >> Time Off Type
Reason: Bug was due to the is_valid function calling the operator with only one value instead of two.
Solution: add value to op call

Closes #5254
task-6522339
@feraz-odoo
feraz-odoo force-pushed the master-hr-onboarding-feraz branch 2 times, most recently from 5ec108e to d6c97ce Compare September 1, 2026 11:53
when creating a time off request via management
Steps to reproduce: Time Off >> Configuration >> Time Off Types >> Open any type, navigate to the Smart button Time Off >> Click on New >> Time Off Type
Reason: Bug was due to the is_valid function calling the operator with only one value instead of two.
Solution: add value to op call

Closes #5254
task-6522339
@feraz-odoo
feraz-odoo force-pushed the master-hr-onboarding-timeoff_type_selection_fix-feraz branch from 8d661d6 to 55504a8 Compare September 1, 2026 11:57

@usseif97 usseif97 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.

Thank for your work
LGTM 👌

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