Odoo version upgrade or data migration? How to move data from Odoo 16 or 17 to 18, 19 or 20
- United States
- United Kingdom
- European Union
- India
- UAE
- Australia
- Canada
In short
There are three routes to a newer Odoo version. Odoo's own upgrade service converts the whole database in place and is free with Odoo Enterprise. OpenUpgrade, from the Odoo Community Association, does the same job for Community databases, one major version at a time. The third route is a fresh database on the new version with data moved across through the API. The third keeps less history but leaves old customisations behind, and it is the only one that also changes edition or hosting.
Route 1: Odoo's upgrade service
Odoo's documentation describes the service this way: you request an upgraded test copy of the database, upgrade your custom code, test, report issues, and then request the production upgrade, during which the database is unavailable (Odoo (opens in a new tab)). With Odoo Enterprise, upgrading to the most recent version is free. A database can go to any major version still under standard support.
The same page lists what the service does not cover: downgrading, switching edition, changing hosting type, and migrating from another ERP. It also says a database with custom modules cannot be upgraded until a version of those modules exists for the target version. That last condition is where most upgrade projects spend their time.
Two rules are worth knowing before you start. A completed production upgrade cannot be reverted, so a backup comes first. And anything you change in the test database is not carried into production; the production upgrade starts again from your live data.
Route 2: OpenUpgrade for Community
OpenUpgrade (opens in a new tab) is the Odoo Community Association's open-source upgrade path. It converts a Community database from one major version to the next, so going from 16 to 18 means 16 to 17, then 17 to 18, testing each. Coverage varies by module and by version, so check the project's status pages for the modules you use before planning around it. It needs someone comfortable running Odoo from source.
Route 3: a fresh database and a data migration
The third route does not upgrade anything. You install the new version clean, configure it, and move records from the old database into it. This is the route that fits when the old system carries years of customisation you no longer want, when you are changing from Community to Enterprise or between hosting types at the same time, or when you are merging several databases.
The cost is history. Odoo's import documentation is plain that created-on dates, created-by and the chatter cannot be set through imports, and that an import cannot be undone inside Odoo (Odoo (opens in a new tab)). Posted accounting history is the hard part and is covered below.
| Odoo upgrade service | OpenUpgrade | Fresh database + migration | |
|---|---|---|---|
| Who it is for | Enterprise | Community | Either edition |
| Keeps full history and chatter | Yes | Yes, where the module is covered | No: records, not their history |
| Custom modules | Must be ported first | Must be ported first | Left behind unless reinstalled |
| Can skip versions | Yes, to a supported version | No, one major version at a time | Yes |
| Changes edition or hosting | No | No | Yes |
| Reversible | No, restore the backup | No, restore the backup | The old database is untouched |
What changes between versions
Whichever route you take, the data model moves under you. These are changes we verified in Odoo's source code and that a record-level migration has to handle. An in-place upgrade handles them for you; a migration between two databases must apply them itself.
| From version | Model | Change |
|---|---|---|
| 13.0 | account.invoice | Invoices became journal entries (account.move); customer and supplier flags became ranks |
| 14.0 | account.move | type became move_type; invoice_payment_state became payment_state |
| 16.0 | account.account | The account type relation (user_type_id) became the account_type selection |
| 16.0 | stock.picking | move_lines became move_ids |
| 17.0 | sale.order | The locked state 'done' became state 'sale' with a locked flag |
| 17.0 | hr.employee | The private address partner became private fields on the employee |
| 18.0 | product.template | Storable products became type 'consu' with is_storable set |
| 18.0 | res.partner | Partner titles were removed |
| 19.0 | res.partner | The mobile field was removed |
Which versions are supported now
Odoo gives each major version three years of standard support (Odoo (opens in a new tab)). With Odoo 20 released in September 2026, the versions under standard support are 20, 19 and 18. Odoo 17 left standard support at that point and Odoo 16 a year earlier. Odoo Online databases are upgraded on Odoo's schedule and must move to a new major version at least every two years.
The external API is changing too. Odoo 19 introduced the JSON-2 API, and the XML-RPC and JSON-RPC endpoints are deprecated, scheduled for removal in Odoo 22 and Odoo Online 21.1 (Odoo (opens in a new tab)). On Odoo Online, external API access needs the Custom pricing plan. Both facts matter to any tool that moves data through the API, including ours.
What Aletheon does, and does not do, for Odoo versions
Aletheon follows route 3. It reads records from the older Odoo database and writes them into the newer one through Odoo's API, reshaping each record for the target version using the rules in the table above. Records are loaded through Odoo's own import method with external IDs, so a second pass updates what is there and creates no duplicates. After loading it reads Odoo back, compares every field with the source and keeps a rollback journal.
The limits are specific. Live runs so far are on Odoo Community 17.0 and 18.0, including a 17 to 18 run in which storable products were converted correctly; other versions are covered by rules checked against Odoo's source but have not been through a live run. The connector is certified for master data: contacts, companies, products and similar records. It does not write journal entries, invoices, payments or bank statements into Odoo yet, because Odoo needs an entry and its lines in one call. It uses the XML-RPC API today, so it has not been run against Odoo 20. And it does not upgrade the database, your modules, views or reports.
So for most firms the honest recommendation is: if you are on Enterprise and want your history, use Odoo's upgrade service. If you want a clean start on a new version, move the master data (opens in a new tab) with a tool that verifies it, and bring accounting across as opening balances.
Accounting when you start fresh
Odoo's own guidance for starting accounting in a new database is to switch at the end of a fiscal year where possible, prepare opening balances, open invoices and bills and an inventory count, and import the trial balance through the journal-entry template. It recommends importing each open invoice or bill with only the total amount due, not line by line (Odoo (opens in a new tab)). The old database stays as the record of the detail.
For the steps around this, see the Odoo migration checklist.
| Question | If yes | If no |
|---|---|---|
| Are you on Odoo Enterprise with a valid subscription? | The upgrade service is free; start there | OpenUpgrade or a fresh database |
| Do you need invoices, payments and chatter history in the new system? | In-place upgrade | A fresh database is an option |
| Do you have custom modules you intend to keep? | Port them first, whichever route | A fresh database leaves them behind cleanly |
| Are you changing edition or hosting as well? | Fresh database, or change in two steps | Any route |
| Are you several versions behind? | Upgrade service can skip; OpenUpgrade cannot | Any route |
Questions people ask
Is the Odoo upgrade free?
Odoo's documentation says that with Odoo Enterprise, upgrading a database to the most recent version is free. Porting custom modules is your own work or your partner's.
Can I skip Odoo versions when upgrading?
With Odoo's upgrade service, yes: a database can go to any major version still under standard support. With OpenUpgrade, no: it moves one major version at a time.
Can an Odoo upgrade be undone?
No. Odoo states that a completed production upgrade cannot be reverted and downgrades are not supported. Take a backup first and test on the upgraded test database.
Does Aletheon upgrade my Odoo database?
No. It moves records between two running Odoo databases and reshapes them for the newer version. It does not upgrade the database itself, custom modules, views or reports, and it does not write accounting entries into Odoo yet.
Which Odoo versions has Aletheon been tested on?
Live runs are on Odoo Community 17.0 and 18.0. Rules for field changes from Odoo 13 to 19 are checked against Odoo's source code. Other versions, including 20, have not been through a live run.
Sources
- Odoo documentation: Upgrade (opens in a new tab)
- Odoo documentation: standard and extended support (opens in a new tab)
- Odoo documentation: Export and import data (opens in a new tab)
- Odoo documentation: External RPC API (deprecated) (opens in a new tab)
- Odoo documentation: Accounting, get started (opens in a new tab)
- OCA OpenUpgrade (opens in a new tab)
Try it on your own data
Run the free sample, read the reconciliation report, roll it back if you like.
See what the Odoo connector covers