[IMP] hr_holiday: dynamically disable invalid date options in accrual plan levels. - #5262
Open
aski97 wants to merge 1 commit into
Open
Conversation
|
This PR targets the un-managed branch odoo-dev/odoo:master-hr-onboarding-vibel, it needs to be retargeted before it can be merged. |
aski97
force-pushed
the
master-hr_holidays-fix_accrual_level_ux-vibel
branch
2 times, most recently
from
September 2, 2026 12:59
137c79d to
0ac4a14
Compare
arpi-odoo
requested changes
Sep 4, 2026
aski97
force-pushed
the
master-hr_holidays-fix_accrual_level_ux-vibel
branch
from
September 4, 2026 13:28
0ac4a14 to
0c0ca73
Compare
… plan levels. The purpose of this task is to prevent the selection of invalid dates (such as February 31st) in accrual plan levels by adding cross-validation for dependent selection fields. UX Improvements: - Add `disabled_selection` OWL widget extending native `SelectionField`. Instead of hiding invalid options, it keeps all choices visible in the UI dropdown while graying out non-allowed choices. The component handles two selection types: * Days: restricts available days based on the selected month via `target_field` option (e.g., selecting February grays out days 30 and 31). * Months: restricts available months based on the selected day via `target_field` option (e.g., selecting the 31st disables months with fewer days like Feb/Apr/Jun/Sep/Nov). Task-ID: 6524484
aski97
force-pushed
the
master-hr_holidays-fix_accrual_level_ux-vibel
branch
from
September 4, 2026 13:56
0c0ca73 to
b6236e8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The purpose of this task is to prevent the selection of invalid dates (such as February 31st) in accrual plan levels by adding cross-validation for dependent selection fields.
UX Improvements:
disabled_selectionOWL widget extending nativeSelectionField. Instead of hiding invalid options, it keeps all choices visible in the UI dropdown while graying out non-allowed choices. The component handles two selection types:target_fieldoption (e.g., selecting February grays out days 30 and 31).target_fieldoption (e.g., selecting the 31st disables months with fewer days like Feb/Apr/Jun/Sep/Nov).Task-ID: 6524484