Skip to content

[FIX] hr_holidays: Accrual UX#5157

Open
raame-odoo wants to merge 1 commit into
master-hr-onboarding-raamefrom
master-hr-onboarding-accrual_ux-raame
Open

[FIX] hr_holidays: Accrual UX#5157
raame-odoo wants to merge 1 commit into
master-hr-onboarding-raamefrom
master-hr-onboarding-accrual_ux-raame

Conversation

@raame-odoo
Copy link
Copy Markdown

The selection field of days in the accrual plan milestones was always showing 31 days in the options regardless the month. A new JavaScript Class was created that extends the "SelecionField" to dynamically change the options and show the number of days depending on the month by accessing the month from props.

Task: 6199932

@robodoo
Copy link
Copy Markdown

robodoo commented May 8, 2026

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

@raame-odoo raame-odoo force-pushed the master-hr-onboarding-accrual_ux-raame branch from e1c3baf to a2868d9 Compare May 8, 2026 13:54
Copy link
Copy Markdown

@amah-odoo amah-odoo 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 you work ✨

some tiny comments

  1. _get_selection_days is used one more time in for carryover_day field which should take the widget as well
  2. I think it will be better to make the widget more flexible we can pass the month field as option or param from the xml view which allow as to sue the widget with any combination of day, month fields 👀

registry.category("fields").add("accrual_day_dropdown", {
...selectionField,
component: AccrualDaySelection,
}); No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

missing EOF line. you could config your editor to add it by default

@raame-odoo raame-odoo force-pushed the master-hr-onboarding-accrual_ux-raame branch from a2868d9 to 0372e9f Compare May 11, 2026 14:42
The selection field of days in the accrual plan milestones was always showing 31 days in the options regardless the month. A new JavaScript Class was created that extends the "SelecionField" to dynamically change the options and show the number of days depending on the month by accessing the month from props.

Task: 6199932
@raame-odoo raame-odoo force-pushed the master-hr-onboarding-accrual_ux-raame branch from 0372e9f to 2576db8 Compare May 11, 2026 14:43
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