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