| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 353 |
| Technical Name |
import_core |
| License | AGPL-3 |
| Website | https://github.com/tawasta/server-tools |
Import Core
Generic CSV import core for Odoo 17.
This module provides:
- Import templates (field mappings + ordered import steps)
- A file upload wizard to execute the import
- A step runner dispatcher framework for pluggable “step modules” (partners, products, subscriptions, etc.)
Configuration
Install import_core and (optionally) one or more step modules, for example:
- import_step_contacts (partners / contacts)
After installing the needed modules:
- Go to: Imports -> Templates
- Create an import template
- Select Import steps (these are provided by installed step modules)
- Define Field mappings:
- CSV column name: the header name in your CSV file
- Model: restricted to the models allowed by the selected steps
- Field: restricted by the selected model
- Is search field: marks fields used to find existing records before creating new ones
Usage
Create / edit templates
- Open: Imports -> Templates
- Create a template
- Select the import steps in the order you want them executed
- Add field mapping lines
Run an import
- Open: Imports -> Templates -> Import (Upload)
- Select the template
- Download the CSV template if needed
- Upload your CSV file
- Click Upload
How step chaining works
The wizard reads each CSV row and:
- Splits the row into model-specific mapping values using your template lines
- Executes the selected steps in sequence
- Passes a shared state dictionary between steps so they can chain records, for example:
- Step 1 (partners) sets state["partner"]
The dispatcher calls step runners by model name:
- Step code partner -> model generic.import.runner.partner
If a runner model is not installed, that step is ignored automatically.
Known issues / Roadmap
-
Credits
Contributors
- Valtteri Lattu <valtteri.lattu@tawasta.fi>
Maintainer
This module is maintained by Oy Tawasta OS Technologies Ltd.
Please log in to comment on this module