Skip to content

[IMP] timeoff: update accrual custom date#5147

Open
yogietama wants to merge 1 commit into
master-hr-onboarding-yometfrom
master-hr-accrual_ux-yomet
Open

[IMP] timeoff: update accrual custom date#5147
yogietama wants to merge 1 commit into
master-hr-onboarding-yometfrom
master-hr-accrual_ux-yomet

Conversation

@yogietama
Copy link
Copy Markdown

This restrict selection date according of the month selected and current year

task:5364831

@robodoo
Copy link
Copy Markdown

robodoo commented May 6, 2026

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

@yogietama yogietama force-pushed the master-hr-accrual_ux-yomet branch 9 times, most recently from 75dc6c2 to b0bbfa2 Compare May 8, 2026 13:09
Copy link
Copy Markdown

@mepe-odoo mepe-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 your work :)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hello this behavior was already worked in the backend; this task is only a frontend task :)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Alright, so it only need to handle it in front end. thank you. updated

Comment on lines +22 to +28
let dayList = [];
for (let i = 1; i <= maxDays; i++) {
const val = i.toString()
dayList.push([val, val]);
}

return dayList;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

no need to create a new dayList you can use the super to retrieve this list and after filter it :)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

don't forget the empty line at the end of the file :)

Comment on lines +198 to +199
<!-- <field name="carryover_day" widget="day_selection" month_field="carryover_month" placeholder="select a day"
required="carryover_date == 'other'"/> -->
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

please clean all the commented code :)

This restrict selection date according of the month selected and current year

task:5364831
@yogietama yogietama force-pushed the master-hr-accrual_ux-yomet branch from b0bbfa2 to ef7ae98 Compare May 11, 2026 14:23
@yogietama yogietama requested a review from mepe-odoo May 13, 2026 14:55
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