Skip to content

Comments

[IMP] Hr_holidays: filtered available dates of carryover accrual#5020

Merged
Mahmoudk3m merged 1 commit intomaster-hr-onboarding-moalifrom
master-hr-onboarding-dynamic_date_selection-moali
Feb 20, 2026
Merged

[IMP] Hr_holidays: filtered available dates of carryover accrual#5020
Mahmoudk3m merged 1 commit intomaster-hr-onboarding-moalifrom
master-hr-onboarding-dynamic_date_selection-moali

Conversation

@mohamedakhalil18
Copy link

Filtered the selection values of the available dates based on the selected month in the carryover accrual plans and milestones

Task: 5920859

@robodoo
Copy link

robodoo commented Feb 9, 2026

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

Copy link

@Mahmoudk3m Mahmoudk3m left a comment

Choose a reason for hiding this comment

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

Thanks for your work 🚀
Left some comments

Comment on lines 32 to 39
registry.category("fields").add("day_selection", {
...selectionField,
component: DaySelection,

extractProps: ({ options }) => ({
monthField: options?.month_field,
}),
});

Choose a reason for hiding this comment

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

Suggested change
registry.category("fields").add("day_selection", {
...selectionField,
component: DaySelection,
extractProps: ({ options }) => ({
monthField: options?.month_field,
}),
});
export const daySelection = {
...selectionField,
component: DaySelection,
extractProps: ({ options }) => ({
monthField: options.month_field,
}),
}
registry.category("fields").add("day_selection", daySelection);

Just a preference for better readability.

Filtered the selection values of the available dates based on the selected month in the carryover accrual plans and milestones. Consequenty a custom component was built to filter the avaialable dates for selection in a single as the month being selected.

Task: 5920859
@mohamedakhalil18 mohamedakhalil18 force-pushed the master-hr-onboarding-dynamic_date_selection-moali branch from dfbaa2a to dc7a969 Compare February 19, 2026 13:51
Copy link

@Mahmoudk3m Mahmoudk3m left a comment

Choose a reason for hiding this comment

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

thanks for your work, lgtm 🚀

@Mahmoudk3m Mahmoudk3m merged commit 2109a7e into master-hr-onboarding-moali Feb 20, 2026
@Mahmoudk3m Mahmoudk3m deleted the master-hr-onboarding-dynamic_date_selection-moali branch February 20, 2026 08:23
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