[FIX] web: fix KanbanRecord config in KanbanRenderer
The KanbanRecord config was not correctly taken into account when initializing the columnOptions (for the KanbanColumn). This completely prevented overriding the KanbanRecord in the kanban view if the KanbanColumn was used for rendering (= when the view was grouped by a field).
This commit is contained in:
@@ -116,7 +116,7 @@ var KanbanRenderer = BasicRenderer.extend({
|
||||
qweb: this.qweb,
|
||||
viewType: 'kanban',
|
||||
});
|
||||
this.columnOptions = _.extend({KanbanRecord: this.KanbanRecord}, params.column_options);
|
||||
this.columnOptions = _.extend({KanbanRecord: this.config.KanbanRecord}, params.column_options);
|
||||
if (this.columnOptions.hasProgressBar) {
|
||||
this.columnOptions.progressBarStates = {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user