From b5fed9c87ade7e8682fd07aa55435d5293a8dbf6 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Tue, 30 May 2023 23:39:10 +0200 Subject: [PATCH] [FIX] account_statement_import: Ensure the load of the view In some cases, the loading was not working properly. By adding the require, the JS will wait until it is declared Fixes #597 --- .../static/src/js/account_dashboard_kanban.js | 1 + 1 file changed, 1 insertion(+) diff --git a/account_statement_import/static/src/js/account_dashboard_kanban.js b/account_statement_import/static/src/js/account_dashboard_kanban.js index 5a0ba641..d936189f 100644 --- a/account_statement_import/static/src/js/account_dashboard_kanban.js +++ b/account_statement_import/static/src/js/account_dashboard_kanban.js @@ -4,6 +4,7 @@ odoo.define("account_statement_import.dashboard.kanban", function (require) { var viewRegistry = require("web.view_registry"); var KanbanView = require("web.KanbanView"); + require("account.dashboard.kanban"); var AccountDashboardView = viewRegistry.get("account_dashboard_kanban"); // Value can be undefined on some test scenarios. Avoid an error by checking if it is defined if (AccountDashboardView !== undefined) {