From a0fb5a920e35678aef04328242175e077a7c859b Mon Sep 17 00:00:00 2001 From: Benjamin Coronel Date: Mon, 17 Jul 2023 13:16:16 +0200 Subject: [PATCH] [16.0][MIG] base_export_async: Fix assets and imports --- base_export_async/__manifest__.py | 4 ++-- base_export_async/static/src/js/list_controller.esm.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/base_export_async/__manifest__.py b/base_export_async/__manifest__.py index 194cadebee..f6aa481942 100644 --- a/base_export_async/__manifest__.py +++ b/base_export_async/__manifest__.py @@ -20,8 +20,8 @@ "assets": { "web.assets_backend": [ "base_export_async/static/src/xml/base.xml", - "base_export_async/static/src/js/list_controller.js", - "base_export_async/static/src/js/data_export.js", + "base_export_async/static/src/js/list_controller.esm.js", + "base_export_async/static/src/js/data_export.esm.js", ], }, "installable": True, diff --git a/base_export_async/static/src/js/list_controller.esm.js b/base_export_async/static/src/js/list_controller.esm.js index 89ccb018a5..6dca241f11 100644 --- a/base_export_async/static/src/js/list_controller.esm.js +++ b/base_export_async/static/src/js/list_controller.esm.js @@ -3,9 +3,9 @@ import {download} from "@web/core/network/download"; import {ListController} from "@web/views/list/list_controller"; import {patch} from "@web/core/utils/patch"; -import framework from "@web.framework"; -import Dialog from "@web.Dialog"; -import core from "@web.core"; +const framework = require("web.framework"); +const Dialog = require("web.Dialog"); +const core = require("web.core"); const _t = core._t; patch(ListController.prototype, "base_export_async", {