odoo_import_file
Import data from local .xlsx/.csv files into Odoo using inspect, check, and run modes for structure analysis, validation, and atomic batch imports with field mapping.
Instructions
Importer un .xlsx/.csv local (lu sur disque, aucune limite de volume).
Modes a enchainer : inspect (structure) / check (valide sans ecrire) / run (importe par lots, atomique par lot).
Les en-tetes des exports Odoo sont des libelles, pas des champs, d'ou mapping :
{"_model":"res.partner","_columns":{"Code":"id","Nom":"name","Notes":null},
"_constants":{"is_company":"True"},"_replace":{"type":{"Goods":"consu"}}}
Colonne mappee sur 'id' = import rejouable sans doublon.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | inspect | |
| path | Yes | ||
| model | No | ||
| sheet | No | ||
| mapping | No | {} | |
| batch_size | No | ||
| header_row | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |