Asynchronous Import

Asynchronous Import

by Contaura LLC · original work by Akretion, ACSONE SA/NV, OCA
base_import_async
$ 29.00

Import CSV files in the background

1.0
Needs 1 more store app, added with it: Total $ 58.00

One purchase covers every version. Already bought it? Sign in.

Asynchronous Import

This module extends the standard CSV import functionality to import files in the background using the OCA/queue framework.

Table of contents

Usage

The user is presented with a new checkbox in the import screen. When selected, the import is delayed in a background job.

This job in turn splits the CSV file in chunks of minimum 100 lines (or more to align with record boundaries). Each chunk is then imported in a separate background job.

When an import fails, the job is marked as such and the user can read the error in the job status. The CSV chunk being imported is stored as an attachment to the job, making it easy to download it, fix it and run a new import, possibly in synchronous mode since the chunks are small.

Any file that can be imported by the standard import mechanism can also be imported in the background.

This module’s scope is limited to making standard imports asynchronous. It does not attempt to transform the data nor automate ETL flows.

Other modules may benefit from this infrastructure in the following way (as illustrated in the test suite):

  1. create an instance of base_import.import and populate its fields (res_model, file, file_name),
  2. invoke the do method with appropriate options (header, encoding, separator, quoting, use_queue, chunk_size).

Known issues / Roadmap

  • There is currently no user interface to control the chunk size, which is currently 100 by default. Should this proves to be an issue, it is easy to add an option to extend the import screen.
  • Validation cannot be run in the background.

Changelog

12.0.2.0.0 (2020-01-06)

  • Add dependency with module ‘queue_job_batch’, allowing the user to display the progress of the import from the top bar.

12.0.1.0.0 (2018-10-20)

  • [MIGRATION] from 11.0 branched at rev. b0945be
Technical namebase_import_async
Module version12.0.2.0.0
Tulio versions1.0
CategoryTools
PublisherContaura LLC
Ported to Tulio, tested and supported by Contaura LLC.
Original authorsAkretion, ACSONE SA/NV, OCA
LicenseAGPL-3
Open source: you may use, change and share this module under its license. The price covers the Tulio port, its testing on Tulio 1.0 and the download.
Requires (store) Job Queue Batch
Requires (Tulio core)base_import, queue_job
Lines of code268
Downloads0
Released12/06/2026
12.0.2.0.0 Tulio 1.0 · 12/06/2026