[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user