From 93bde9cafdba6922020d5fb1aee216dc88357e65 Mon Sep 17 00:00:00 2001 From: Vincent Larcin Date: Tue, 22 Feb 2022 13:52:14 +0000 Subject: [PATCH] [IMP] project: append "Tasks by Deadline" to tasks calendar view title To make it more clear that the calendar view of the project tasks only shows the deadline of the tasks, this commits appends " - Tasks by Deadline" to the title of the view Task-2741733 Part-of: odoo/odoo#86008 --- addons/project/static/src/js/project_calendar.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/addons/project/static/src/js/project_calendar.js b/addons/project/static/src/js/project_calendar.js index 37943fad6ed..605fc87c6a0 100644 --- a/addons/project/static/src/js/project_calendar.js +++ b/addons/project/static/src/js/project_calendar.js @@ -37,6 +37,14 @@ export const ProjectCalendarView = CalendarView.extend({ ControlPanel: ProjectControlPanel, Model: ProjectCalendarModel, }), + + /** + * @override + */ + init: function (viewInfo, params) { + this._super.apply(this, arguments); + this.controllerParams.displayName += " - Tasks by Deadline"; + } }); viewRegistry.add('project_calendar', ProjectCalendarView);