[MIG][15.0] port-forward pr522,527 to 15.0

This commit is contained in:
sonhd91
2022-12-13 16:47:57 +07:00
parent 02ecf8aa07
commit 68a1bc65bb
3 changed files with 15 additions and 13 deletions

View File

@@ -1,6 +1,8 @@
odoo.define("account_statement_import.dashboard.kanban", function (require) {
"use strict";
var viewRegistry = require("web.view_registry");
var KanbanView = require("web.KanbanView");
var AccountDashboardView = viewRegistry.get("account_dashboard_kanban");
// Value can be undefined on some test scenarios. Avoid an error by checking if it is defined
@@ -17,6 +19,11 @@ odoo.define("account_statement_import.dashboard.kanban", function (require) {
});
},
});
AccountDashboardView = KanbanView.extend({
config: _.extend({}, KanbanView.prototype.config, {
Controller: AccountDashboardController,
}),
});
return {
AccountDashboardView: AccountDashboardView,
AccountDashboardController: AccountDashboardController,