From 0f2863c70a712ba4e6ef0eee9fcdaf27816f22ac Mon Sep 17 00:00:00 2001 From: Vincent Larcin Date: Tue, 22 Feb 2022 13:45:53 +0000 Subject: [PATCH] [IMP] web: use params.displayName for calendar view title This commit uses params.displayName instead of params.action.name for calendar views titles. This allows us, among other things, to use the project name as a title for the project's tasks calendar view, which is more consistent with other views. Task-2741733 Part-of: odoo/odoo#86008 --- addons/web/static/src/legacy/js/views/calendar/calendar_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/legacy/js/views/calendar/calendar_view.js b/addons/web/static/src/legacy/js/views/calendar/calendar_view.js index 73eb4b82d2c..29e0270b3b7 100644 --- a/addons/web/static/src/legacy/js/views/calendar/calendar_view.js +++ b/addons/web/static/src/legacy/js/views/calendar/calendar_view.js @@ -179,7 +179,7 @@ var CalendarView = AbstractView.extend({ this.controllerParams.showUnusualDays = utils.toBoolElse(attrs.show_unusual_days || '', false); this.controllerParams.mapping = mapping; this.controllerParams.context = params.context || {}; - this.controllerParams.displayName = params.action && params.action.name; + this.controllerParams.displayName = params.displayName; this.controllerParams.scales = scales; this.rendererParams.displayFields = displayFields;