Skip to content

Conversation

@vikri-odoo
Copy link

Steps to reproduce: Open accrual milstone form containing the custom day selection field. Select "February" as the month and observe that "31" remains a selectable option in the day dropdown.

Bug Cause: The standard selection field used static values (1-31) and lacked dynamic cross-field validation between the month and day inputs.

Solution: Created a new Odoo field widget to handle day selection. This widget dynamically calculates the maximum number of days allowed based on the selected month and year, effectively disabling or removing invalid dates like February 31st.

…, Feb 31st) via new widget

Steps to reproduce: Open accrual milstone form containing the custom day selection field. Select "February" as the month and observe that "31" remains a selectable option in the day dropdown.

Bug Cause: The standard selection field used static values (1-31) and lacked dynamic cross-field validation between the month and day inputs.

Solution: Created a new Odoo field widget to handle day selection. This widget dynamically calculates the maximum number of days allowed based on the selected month and year, effectively disabling or removing invalid dates like February 31st.
@robodoo
Copy link

robodoo commented Jan 27, 2026

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

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