diff --git a/base_import_async/__manifest__.py b/base_import_async/__manifest__.py index 205960ff84..af6b6918ad 100644 --- a/base_import_async/__manifest__.py +++ b/base_import_async/__manifest__.py @@ -11,8 +11,15 @@ "website": "https://github.com/OCA/queue", "category": "Generic Modules", "depends": ["base_import", "queue_job"], - "data": ["data/queue_job_function_data.xml", "views/base_import_async.xml"], - "qweb": ["static/src/xml/import.xml"], - "installable": False, + "data": ["data/queue_job_function_data.xml"], + "assets": { + "web.assets_backend": [ + "base_import_async/static/src/js/import.js", + ], + 'web.assets_qweb': [ + 'base_import_async/static/src/xml/import.xml', + ], + }, + "installable": True, "development_status": "Production/Stable", } diff --git a/base_import_async/models/base_import_import.py b/base_import_async/models/base_import_import.py index de08c5efb1..a23ef1c736 100644 --- a/base_import_async/models/base_import_import.py +++ b/base_import_async/models/base_import_import.py @@ -32,10 +32,10 @@ class BaseImportImport(models.TransientModel): _inherit = "base_import.import" - def do(self, fields, columns, options, dryrun=False): + def execute_import(self, fields, columns, options, dryrun=False): if dryrun or not options.get(OPT_USE_QUEUE): # normal import - return super().do(fields, columns, options, dryrun=dryrun) + return super().execute_import(fields, columns, options, dryrun=dryrun) # asynchronous import try: diff --git a/base_import_async/static/src/xml/import.xml b/base_import_async/static/src/xml/import.xml index d401157a14..5ad14fc5da 100644 --- a/base_import_async/static/src/xml/import.xml +++ b/base_import_async/static/src/xml/import.xml @@ -1,6 +1,6 @@ - +