From 28a3bdbc4e02eb0463dfa7b3b24fba8efcd3ae8c Mon Sep 17 00:00:00 2001 From: Kevin Baptiste Date: Mon, 29 Nov 2021 08:31:01 +0000 Subject: [PATCH] [FIX] hr_holidays: show Dashboard data in mobile The number of leaves taken / available was no longer available in mobile. closes odoo/odoo#80513 Taskid: 2701070 X-original-commit: 3c68b1cad227235a915b4908b6d73aee030e54bc Signed-off-by: Kevin Baptiste --- .../src/js/time_off_calendar/time_off_calendar_renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_holidays/static/src/js/time_off_calendar/time_off_calendar_renderer.js b/addons/hr_holidays/static/src/js/time_off_calendar/time_off_calendar_renderer.js index cf1634bb338..4060a1a7490 100644 --- a/addons/hr_holidays/static/src/js/time_off_calendar/time_off_calendar_renderer.js +++ b/addons/hr_holidays/static/src/js/time_off_calendar/time_off_calendar_renderer.js @@ -24,7 +24,7 @@ export const TimeOffCalendarRenderer = TimeOffPopoverRenderer.extend({ const elem = QWeb.render('hr_holidays.dashboard_calendar_header_mobile', { timeoff: data, }); - this.$el.find('.o_calendar_filter_item[data-value=' + data[4] + '] .o_cw_filter_title').append(elem); + this.$el.find('.o_calendar_filter_item[data-value=' + data[3] + '] .o_cw_filter_title').append(elem); }); } else { const elem = QWeb.render('hr_holidays.dashboard_calendar_header', {