[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
This commit is contained in:
Vincent Larcin
2022-05-05 15:14:30 +02:00
parent 0f2863c70a
commit 93bde9cafd
@@ -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);