Skip to Content

How to import and export data in Odoo step by step

Updated for Odoo 20
10 December 2024
Last updated: 26 November 2026

To export data from Odoo, open the list view, select the records, click Actions and choose Export; switch on Updatable fields only if you will re-import the file. To import, choose Import, upload an XLSX or CSV file, check the column mapping, click Test, then Import. Both tools are built into Odoo and need no extra module.

Below, we show you step by step how to export, import and update data in Odoo 20. The steps are the same in Odoo 19, except that the export switch Updatable fields only was still called I want to update data (import-compatible export) there.

How do I export data from Odoo?

In Odoo you can export all your data such as products, contacts, purchase orders, etc. There are two export options:

1. Export all data: how do I download a whole list in one click?

2. Import-compatible export: how do I export data that I want to update later?

1. Export all data: how do I download a whole list in one click?

To export all data, you need to select the List View. 

Contacts in the Odoo 20 list view, the starting point for every exportContacts in the Odoo 20 list view, the starting point for every export

Contacts in the Odoo 20 list view, the starting point for every exportContacts in the Odoo 20 list view, the starting point for every export

Contacts in the Odoo 20 list view, the starting point for every exportContacts in the Odoo 20 list view, the starting point for every export

Contacts in the Odoo 20 list view, the starting point for every exportContacts in the Odoo 20 list view, the starting point for every export

This export contains exactly the columns shown in the list. To add or remove columns before exporting, click the column toggle icon at the right-hand end of the header row and tick or untick the columns you need.

The column toggle at the right-hand end of the header row adds or removes list columnsThe column toggle at the right-hand end of the header row adds or removes list columns

The column toggle at the right-hand end of the header row adds or removes list columnsThe column toggle at the right-hand end of the header row adds or removes list columns

The column toggle at the right-hand end of the header row adds or removes list columnsThe column toggle at the right-hand end of the header row adds or removes list columns

The column toggle at the right-hand end of the header row adds or removes list columnsThe column toggle at the right-hand end of the header row adds or removes list columns

Make sure no record is selected, then click the Actions (⋮) menu and select Export. An XLSX file with the visible columns downloads immediately – no dialog, no field selection. Up to Odoo 19 this entry was labelled Export All; it is also available in the Kanban view.

Actions (⋮) menu with no record selected: Export downloads the visible columns as XLSXActions (⋮) menu with no record selected: Export downloads the visible columns as XLSX

Actions (⋮) menu with no record selected: Export downloads the visible columns as XLSXActions (⋮) menu with no record selected: Export downloads the visible columns as XLSX

Actions (⋮) menu with no record selected: Export downloads the visible columns as XLSXActions (⋮) menu with no record selected: Export downloads the visible columns as XLSX

Actions (⋮) menu with no record selected: Export downloads the visible columns as XLSXActions (⋮) menu with no record selected: Export downloads the visible columns as XLSX

2. Import-compatible export: how do I export data that I want to update later?

Use this method when you need specific fields, a CSV file, or a file you can edit in a spreadsheet and re-import to update existing records.

Select the values you want to export. If you check the box to the left of the Name field, you will select all records on the page. 

  You can click on the Select all link that appears next to the selection count to create an import compatible export of your entire dataset.

Selected records with the Select all link next to the selection countSelected records with the Select all link next to the selection count

Selected records with the Select all link next to the selection countSelected records with the Select all link next to the selection count

Selected records with the Select all link next to the selection countSelected records with the Select all link next to the selection count

Selected records with the Select all link next to the selection countSelected records with the Select all link next to the selection count

Then, click on Actions > Export. 

The Actions menu of the selected records with the Export entryThe Actions menu of the selected records with the Export entry

The Actions menu of the selected records with the Export entryThe Actions menu of the selected records with the Export entry

The Actions menu of the selected records with the Export entryThe Actions menu of the selected records with the Export entry

The Actions menu of the selected records with the Export entryThe Actions menu of the selected records with the Export entry

The Export Data dialog opens. If you plan to re-import the file, switch on Updatable fields only (called I want to update data (import-compatible export) up to Odoo 19). The switch limits the field list to importable fields and adds the External ID column, which Odoo later uses to recognise the records. “Keep the External ID column from day one, even for a small contact list. Teams that drop it end up matching records by name later, and names are never unique. A stable key makes every later update import routine,” says Samuel Reinhardt, Manager Solutions Consulting Germany at much. Consulting.

In the dialog, choose the format: Excel Workbook (.xlsx) or Plain Text (.csv).

You can select fields from the Available fields column by searching and clicking on the + button. Once selected, these fields will shift to the Fields to export column. You can remove unwanted fields by clicking on the trash can button and arrange them by dragging them into your preferred order. For recurring exports, save the selection as an export template – templates are stored per model and shared with the other users of the database. Custom fields created with Studio (technical name starting with x_studio_) are listed like any other field.

Export Data dialog in Odoo 20 with the Updatable fields only switch, the two field lists and the formatExport Data dialog in Odoo 20 with the Updatable fields only switch, the two field lists and the format

Export Data dialog in Odoo 20 with the Updatable fields only switch, the two field lists and the formatExport Data dialog in Odoo 20 with the Updatable fields only switch, the two field lists and the format

Export Data dialog in Odoo 20 with the Updatable fields only switch, the two field lists and the formatExport Data dialog in Odoo 20 with the Updatable fields only switch, the two field lists and the format

Export Data dialog in Odoo 20 with the Updatable fields only switch, the two field lists and the formatExport Data dialog in Odoo 20 with the Updatable fields only switch, the two field lists and the format

Click on Export –  your file downloads immediately. Very large exports can run into a time-out; the Odoo documentation recommends exporting and importing in smaller batches.


How do I import data into Odoo?

As with data exports, you can import your datasets such as contacts, sales orders, purchase orders, products, etc. into Odoo instead of creating each record by hand. You can either import your data into Odoo from an Excel file (.xlsx, .xls or .xlsm), an OpenDocument spreadsheet (.ods) or a CSV file. Here’s how to do it:

Similarly to an export, you need to click on the Actions (⋮) menu and choose Import. You do not need to be in the list view to do so. Note that imports are permanent and cannot be undone, so always test first.

Actions (⋮) menu in the Kanban view with the Import entryActions (⋮) menu in the Kanban view with the Import entry

Actions (⋮) menu in the Kanban view with the Import entryActions (⋮) menu in the Kanban view with the Import entry

Actions (⋮) menu in the Kanban view with the Import entryActions (⋮) menu in the Kanban view with the Import entry

Actions (⋮) menu in the Kanban view with the Import entryActions (⋮) menu in the Kanban view with the Import entry

After clicking Import, Odoo opens the import screen, where you upload or drop your file. You’ll also see an option to download Import Templates, which provide ready-mapped formats for common data types such as contacts, products and bank statements. Keep the External ID column when you adapt a template: it lets you re-import the file later without creating duplicates.

You can upload your file either by drag-and-dropping it, or by clicking on the Upload button.

Odoo 20 import screen: upload or drop a file, or download the import templateOdoo 20 import screen: upload or drop a file, or download the import template

Odoo 20 import screen: upload or drop a file, or download the import templateOdoo 20 import screen: upload or drop a file, or download the import template

Odoo 20 import screen: upload or drop a file, or download the import templateOdoo 20 import screen: upload or drop a file, or download the import template

Odoo 20 import screen: upload or drop a file, or download the import templateOdoo 20 import screen: upload or drop a file, or download the import template

After you select your file, Odoo shows a preview in which each File Column is matched to an Odoo Field. Odoo guesses the field type from the first ten rows of the file; columns it cannot match can be mapped by hand from the drop-down, and relational fields can be matched by name, Database ID or External ID. Error messages are shown next to the affected column. Before importing your data, click the Test button to check if your file is compatible with Odoo. If there are no errors, you’ll see the message Everything seems valid.

Import preview in Odoo 20: each file column is matched to an Odoo fieldImport preview in Odoo 20: each file column is matched to an Odoo field

Import preview in Odoo 20: each file column is matched to an Odoo fieldImport preview in Odoo 20: each file column is matched to an Odoo field

Import preview in Odoo 20: each file column is matched to an Odoo fieldImport preview in Odoo 20: each file column is matched to an Odoo field

Import preview in Odoo 20: each file column is matched to an Odoo fieldImport preview in Odoo 20: each file column is matched to an Odoo field

Once done, click on Import – your records are created, or updated where the file carries an External ID or Database ID, in your Odoo system. Files with more than 100 rows are imported in batches – 2,000 records per transaction by default, adjustable via Batch size in developer mode – and an interrupted import can be resumed. “In migration projects the import tool itself is rarely the problem. What costs time is data that was never cleaned in the old system – duplicate contacts, inconsistent units, missing keys. We clean and test in a staging database before anything touches production,” says Domingos Ferreira, Managing Director at much. Consulting.


FAQ: importing and exporting data in Odoo

How do I export data from Odoo?

Open the list view, select the records, click Actions and choose Export. In the Export Data dialog pick the fields, the format (XLSX or CSV) and, if you want to re-import the file later, the "Updatable fields only" switch, which adds the External ID column. With nothing selected, Export in the ⋮ menu downloads the visible columns as XLSX at once.

Can I import XLSX or CSV files into Odoo?

Yes. You import data by clicking Actions > Import and uploading your file – .xlsx, .xls, .xlsm, .ods and .csv are accepted. Odoo offers import templates for contacts, products and bank statements; keep their External ID column so you can re-import the same file later to update records instead of duplicating them.

How do I prevent errors during a data import?

Click Test after uploading the file and before clicking Import. Odoo checks the field mapping, dates, numbers and relational values row by row, shows every error beneath the affected column and returns an "Everything seems valid" message when the data is ready. Imports cannot be undone, so fix every error first; for very large files, reduce the batch size or split the file.

How do I update existing records in Odoo with an import?

Export the records with Updatable fields only switched on, so the file contains the External ID column, edit the values in a spreadsheet and import the file again. Odoo matches each row to the existing record by its External ID (or Database ID) and updates it instead of creating a duplicate. Never change or delete the ID column.

What is an External ID in Odoo and why does it matter for imports?

An External ID is a unique identifier for a record, such as base.be for Belgium. Odoo uses it to recognise records across imports, so the same file can be imported several times without creating duplicates, and to link records in relational fields through columns such as Country/External ID. For migrations, reuse the IDs of the old system, prefixed per table.

How do I import relational fields such as tags or order lines?

Import the related records first, then reference them by name, Database ID or External ID. Many2many values like tags go in one cell, separated by commas without spaces (Manufacturer,Retailer). For one2many records such as order lines, use one row per line: the first line shares the order’s row, further lines get their own rows with the order columns left empty.

Is there a limit on how many records I can import into Odoo at once?

No fixed limit, but very large files can hit a time-out. Odoo imports files with more than 100 rows in batches of 2,000 records per transaction by default; in developer mode you can lower the Batch size, and the Odoo documentation recommends splitting very large imports. For a complete data migration, see our Odoo data migration guide.


Looking for the right partner for your Odoo project?

Then much. Consulting is the right choice for you! As one of the largest Odoo Gold Partners in Germany, we support companies of all sizes and industries in the successful implementation and long-term support of Odoo projects.




in Odoo

Your Dynamic Snippet will be displayed here... This message is displayed because you did not provided both a filter and a template to use.

Read more about Odoo: 

Meet much.! Learn more about our team

About us
Talk to our experts
How to import and export data in Odoo step by step
Simon Stappen 10 December 2024