[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:
Aurélien Warnon
2018-12-12 07:39:40 +00:00
parent a03faab03f
commit 06c05983e3
@@ -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 = {};
}