From 7c35d2f68476af7616d0b1dccb0ca27e27df7ea9 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b45327e2..d5e23e3e 100644 --- a/account_statement_import/static/src/js/account_dashboard_kanban.js +++ b/account_statement_import/static/src/js/account_dashboard_kanban.js @@ -1,7 +1,7 @@ odoo.define("account_statement_import.dashboard.kanban", function (require) { "use strict"; var viewRegistry = require("web.view_registry"); - + 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) {