mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user