Import thousands of rows in the background, and keep working.
Check one box in Odoo's own import, and the file is split into chunks that the server imports one by one, with the rights of the user who started it. Progress, failed rows and a retry are one click away.
The import runs on the server, so a large file no longer holds the browser until the last row is in.
Each chunk is imported on its own, so an error stops only its own chunk and the rest goes in.
Download the failed rows as a file, or split them into a new job that isolates every broken row.
The import you know, run as a job
Nothing new to learn: upload, map the columns, check Import in the background. From then on the file is an import job that you can follow, inspect and repair.
The option sits in the import of every list view, for CSV and spreadsheet files, with the mapping, encoding and separators you chose.
Batch Size sets the rows per chunk. A record that spans several rows, such as an order with its lines, is never cut in two.
The Import Jobs list shows each job's progress, the time left, the failed chunks and its state, one click away in the top bar.
Each chunk keeps its rows, its own file and the full result of its import, and can be imported again on its own.
Download the rows of the failed chunks in one file, or Split & Retry them as a new job with one row per chunk.
A job imports with the access rights and the language of the user who started it. Users see their own jobs, administrators all of them.
Every import in one list
After Import, Odoo confirms the job and opens the list. A scheduled action starts right away, splits the file and imports chunk by chunk while you work on. The upload icon in the top bar, or Settings › Technical › Imports, brings you back; filters show your own, the running and the failed jobs.
Chunk by chunk, on the record
The job moves from New through Splitting and Importing to Imported or Error. Its chunks wait under Open and move to Imported or Error, each with its rows, a preview of the result and the chunk as a file.
View Status opens the complete answer of the import. The chatter records every change of state, and the Logging tab what each pass of the scheduled action did.
Date cells from a spreadsheet are converted the way Odoo's own import converts them, and the file keeps the encoding and separators you picked.
Find the broken rows, keep the rest
A job with failed chunks ends in Error, and the preview of each failed chunk already names the problem. Download collects the rows of all failed chunks in one file, ready to correct and import again.
Split & Retry starts a new job from those rows with one row per chunk: the good rows go in, and only the broken ones are left, each on its own line.
A framework for your own imports
The standard import is the first import type the jobs know. Splitting, processing and merging are looked up by type, so a module of your own can run its imports through the same jobs, list and retry.
Add a type and its split, process and merge methods, and a feed from another system becomes a job like any other.
Whatever Odoo's import can load, the background import loads too: contacts, products, orders with their lines, or your own models.
Finished jobs are deleted after 30 days. Two system parameters set how many days imported and failed jobs are kept.
Help and support
What is covered after you buy, and where to write.
30 days of complimentary support for issues with the module, from the date of purchase. Data recovery, migration and training are not covered.
support@mukit.at for a technical issue — with your Odoo version and the status of the failed chunk. sale@mukit.at for anything before you buy.
MuK Proprietary Licence v1.0 — one database per licence. You may build modules on top of it; you may not redistribute it.
Want more?
MuK IT — Austrian Odoo partner, ViennaModules written for your process, on your Odoo version.
Odoo joined up with the systems you already run.
Hosting, deployment and upgrades you do not have to watch.
Your team taught the parts of Odoo they actually use.
An agreement, so an answer does not depend on who is free.
Data in, data out
Documentation
The full text is on the Documentation tab, and in doc/ inside the download.Odoo.sh or on-premise, Community or Enterprise, with scheduled actions running on the server.
None needed. Batch Size sets the chunk size per import; two system parameters set how long finished jobs are kept.
Depends on Odoo's base_import and mail, and on MuK Web Utils. No Python packages beyond Odoo's own.
Import from any list, check Import in the background, then follow the job from the upload icon in the top bar.
Let running jobs finish first; finished jobs are kept until their retention ends.
MuK IT GmbH, Vienna. Author and maintainer.
Which data has to get into your Odoo?
Tell us where it comes from and how often, and we will tell you whether a background import covers it or it needs an import type of its own. MuK IT — Austrian Odoo partner, Vienna.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 1833 |
| Technical Name |
muk_import |
| License | See License tab |
| Website | http://www.mukit.at |
MuK Import
The module can be used as a framework for background imports in Odoo. But the extension can also be used on its own to run the standard Odoo import in the background to handle large imports with ease.
Installation
To install this module, you need to:
Download the module and add it to your Odoo addons folder. Afterward, log on to your Odoo server and go to the Apps menu. Trigger the debug mode and update the list by clicking on the "Update Apps List" link. Now install the module by clicking on the install button.
Upgrade
To upgrade this module, you need to:
Download the module and add it to your Odoo addons folder. Restart the server and log on to your Odoo server. Select the Apps menu and upgrade the module by clicking on the upgrade button.
Configuration
No configuration required. The Batch Size option in the import sets the number of rows per chunk for that import; a record that spans several rows, such as an order with its lines, is never split across two chunks.
Finished jobs are deleted after 30 days. Two system parameters (Settings > Technical > System Parameters) set the retention in days:
- muk_import.import_job_done_autovacuum for imported jobs
- muk_import.import_job_error_autovacuum for jobs that ended in error
Usage
- Open a list view, for example Contacts, and choose Import in the cog menu.
- Upload a CSV or spreadsheet file and map the columns to fields as usual.
- Check Import in the background and set the Batch Size. The Test button is not available for a background import.
- Click Import. Odoo confirms that the job was created and opens the Import Jobs list.
A scheduled action splits the file into chunks and imports them one by one, with the access rights of the user who started the import. The jobs are listed under the upload icon in the top bar and in Settings > Technical > Imports > Import Jobs, with their progress, the estimated remaining time and the number of failed chunks.
A job shows its chunks under the Open, Imported and Error tabs, each with its rows, a preview of the result and the chunk as a CSV file. View Status opens the full result of a chunk and Import Line imports it again. The Logging tab and the chatter record what happened.
When a job ends in Error, Download returns the rows of all failed chunks as one CSV file, and Split & Retry creates a new job from those rows with a chunk size of 1, so every failing row ends up on its own line.
Credits
Contributors
- Mathias Markl <mathias.markl@mukit.at>
Author & Maintainer
This module is maintained by the MuK IT GmbH.
MuK IT is an Austrian company specialized in customizing and extending Odoo. We develop custom solutions for your individual needs to help you focus on your strength and expertise to grow your business.
If you want to get in touch please contact us via mail (sale@mukit.at) or visit our website (https://mukit.at).
MuK Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from MuK IT GmbH. The above permissions are granted for a single database per purchased license. Furthermore, with a valid license it is permitted to use the software on other databases as long as the usage is limited to a testing or development environment. You may develop modules based on the Software or that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the MuK Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module