From 52dae7a2f00c41222cf4518617d050efa8d34359 Mon Sep 17 00:00:00 2001 From: Leonardo Pavan Rocha Date: Wed, 4 Oct 2023 17:04:46 +0200 Subject: [PATCH] [IMP] hr_holidays: show correct week number in year calendar view Currently in time off, we show the year view of calendar with the configuration that shows the week number beside each week row. However, it starts as week 52. This is a bug in fullcalendar that should be fixed by setting the option firstDay as 0, according to this issue https://github.com/fullcalendar/fullcalendar/issues/7026. task-3455051 Part-of: odoo/odoo#138670 --- .../static/src/views/calendar/year/calendar_year_renderer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr_holidays/static/src/views/calendar/year/calendar_year_renderer.js b/addons/hr_holidays/static/src/views/calendar/year/calendar_year_renderer.js index 75985607dd2..cdfd919778e 100644 --- a/addons/hr_holidays/static/src/views/calendar/year/calendar_year_renderer.js +++ b/addons/hr_holidays/static/src/views/calendar/year/calendar_year_renderer.js @@ -44,6 +44,7 @@ export class TimeOffCalendarYearRenderer extends CalendarYearRenderer { weekNumbers: true, weekNumbersWithinDays: false, weekLabel: _t("Week"), + firstDay: 0, }); }