Technical
Odoo 19 to 20 Migration: The Complete Checklist
A step-by-step Odoo 19 to 20 migration checklist covering module inventory, data clean-up, test copies, the upgrade service vs OpenUpgrade, porting custom code, and go-live, with notes on Community, Enterprise and Odoo.sh.
Kalvyai Engineering · · 8 min read

On this page
This checklist covers a single major-version hop: Odoo 19 to Odoo 20. It is split into three phases (before, during, after), and each step says whether it applies to Community, Enterprise on-premise, or Odoo.sh.
One caution first. Version-specific requirements for Odoo 20 (Python version, PostgreSQL version, removed APIs) come from Odoo's release notes and upgrade documentation. Where this post needs one of those details, you will see a marker. Fill those in from the official docs before you plan dates.
Which upgrade path applies to you
Setup | Who upgrades standard data | Who upgrades custom/third-party modules |
|---|---|---|
Enterprise, self-hosted | Odoo's upgrade service | You (or your partner) |
Enterprise on Odoo.sh | Odoo's upgrade service, triggered from Odoo.sh | You (or your partner) |
Community, self-hosted | OpenUpgrade (OCA) | You (or your partner) |
Odoo's upgrade service is tied to an Enterprise subscription. Community databases normally use OpenUpgrade, the OCA project that provides migration scripts for standard modules.
In every case, your own custom modules and any third-party modules need to be ported to 20.0 separately. No upgrade tool does that for you automatically unless you have a contract that covers it.
Before the migration
1. Confirm Odoo 20 is ready for you
- Read the Odoo 20 release notes and the upgrade documentation.
- Note the Python and PostgreSQL versions that Odoo 20 supports, as listed in Odoo's official installation guide for 20.0.
- Community only: check OpenUpgrade's module coverage page for the 20.0 branch. Coverage for a new release usually lags the release itself, and a module marked as not covered means its data will not be migrated.
- Check whether your localisation (tax reports, e-invoicing, payroll) has changed in 20. These are the modules most likely to need accountant sign-off after the upgrade.
2. Inventory every installed module
You cannot estimate a migration without a full list. Run this against a copy of your production database:
SELECT name, latest_version, author, state
FROM ir_module_module
WHERE state = 'installed'
ORDER BY author, name;Sort the result into three groups:
- Standard Odoo modules. Handled by the upgrade service (Enterprise) or OpenUpgrade (Community, if covered).
- Third-party modules from the Odoo Apps store, OCA or other vendors. For each, record the vendor, whether a 20.0 version exists, and its licence.
- Custom modules written for you. For each, record the owner, the repository, and whether it has tests.
Then ask a blunt question for every non-standard module: is it still used? Modules installed for a project that ended three years ago are pure migration cost. Uninstall them on a test copy first to make sure nothing depends on them, then on production before you start.
3. Check third-party module availability
For each third-party module:
- Check whether the vendor has published a 20.0 version.
- If yes, check whether it includes migration scripts from 19.0, or only a fresh install.
- If no, decide: wait, replace it with a standard feature, or port it yourself (check the licence allows that).
This step often sets the timeline. A single unported module that holds business data can block the whole project.
4. Clean up data
The upgrade runs on every record, so dirty data turns into failed upgrade runs or broken records later. On a copy, look for:
- Draft and cancelled documents nobody will ever post (old quotations, draft invoices, abandoned stock moves).
- Duplicate partners and products.
- Stuck scheduled actions and queue jobs.
- Large attachment volumes in the filestore that you no longer need.
- Records pointing to archived or deleted companies, warehouses or journals.
Close the fiscal period you can close and reconcile what you can before migration. Accounting issues are much easier to explain in the old version than after an upgrade.
5. Make a neutralised test copy
Never test on production. Restore a recent backup (database plus filestore) to a separate server, then neutralise it so it cannot send emails, run payments or call external systems:
./odoo-bin neutralize -d mycompany_testAlso check by hand: outgoing mail servers, payment providers, webhooks, connector credentials and scheduled actions. Any integration that writes to a live third-party system (shop, bank, courier, tax portal) should point to a sandbox or be disabled.
On Odoo.sh, staging branches start from a copy of production that Odoo neutralises. Still review your custom integrations, because neutralisation only covers what Odoo knows about.
6. Agree on a freeze
Pick a date after which no new modules, fields or customisations go into production. Every change after the freeze has to be repeated on the 20.0 code.
During the migration
Enterprise, self-hosted: Odoo's upgrade service
Odoo provides a script that sends your database to the upgrade platform and returns an upgraded dump. Start with a test request:
python <(curl -s https://upgrade.odoo.com/upgrade) test -d mycompany_test -t 20.0Restore the returned database on a server running Odoo 20 code plus your ported custom modules, then run your tests. When you are ready for the real run, the same script is used with production instead of test.
Request test upgrades more than once. Each round on fresh production data tells you whether the issues you fixed stay fixed.
Enterprise on Odoo.sh
On Odoo.sh the flow is similar but driven from the project:
- Create a branch for your 20.0 code and port your custom modules there.
- Request an upgrade of a staging copy through Odoo's upgrade service, following Odoo's upgrade documentation for your hosting type.
- Odoo.sh builds the staging branch with the upgraded database. Test it there.
- Fix issues in the branch and request new test upgrades until it is clean.
- Request the production upgrade on the agreed date.
The main Odoo.sh difference: you do not manage servers, Python or PostgreSQL versions, but you do need your repository's 20.0 branch to build cleanly, including submodules for third-party modules.
Community: OpenUpgrade
OpenUpgrade runs on top of the Odoo 20 code and applies OCA migration scripts to standard modules. A typical run on a test copy looks like this:
git clone --branch 20.0 https://github.com/OCA/OpenUpgrade.git
pip install openupgradelib
./odoo-bin -d mycompany_test \
--addons-path=odoo/addons,addons,/opt/OpenUpgrade,/opt/custom-20 \
--upgrade-path=/opt/OpenUpgrade/openupgrade_scripts/scripts \
--load=base,web,openupgrade_framework \
--update all --stop-after-initFollow the install instructions in the README of OpenUpgrade's 20.0 branch, because the setup can change from one release to the next.
Read the log from top to bottom, not only the last error. Warnings about missing columns or skipped modules matter. If a standard module you use is not covered yet, you either wait, contribute the migration script, or pay someone to write it.
Porting custom modules
This is usually the largest part of the work for all three setups.
- Bump the manifest version to the 20.0 series, for example
20.0.1.0.0. - Fix Python changes. Look for removed or renamed models, fields and methods in the Odoo 20 changelog.
- Fix views. Inherited views break when the parent view's structure changes. Every
xpaththat targets a standard view needs checking. - Fix JavaScript. Owl components and patched web client code are fragile across versions. Test every custom widget in the browser.
- Write migration scripts for any data your own module changes between versions.
- Run your tests with
--test-enableon the upgraded copy.
Migration scripts live inside the module, in a folder named after the new version. Odoo runs them automatically during the module update:
# my_module/migrations/20.0.1.0.0/pre-migrate.py
def migrate(cr, version):
if not version:
return # fresh install, nothing to migrate
cr.execute("""
SELECT 1 FROM information_schema.columns
WHERE table_name = 'sale_order' AND column_name = 'x_old_ref'
""")
if cr.fetchone():
cr.execute(
"ALTER TABLE sale_order RENAME COLUMN x_old_ref TO legacy_ref"
)Use pre-migrate.py for schema changes that must happen before the ORM loads the new model definitions, and post-migrate.py for data fixes that need the new models in place.
If you have many custom modules, our Upgrade Autopilot app moves custom Odoo apps to the next version, automatically upgraded and tested. Review its output the same way you would review any pull request.
Re-test reports
PDF reports break quietly. The upgrade succeeds, and three weeks later someone notices the invoice footer is missing.
- Print every customised QWeb report: invoices, quotations, delivery slips, purchase orders, payslips.
- Compare each one side by side with the 19 version.
- Check multi-company headers, logos, currency formatting and translated reports.
- Re-check any spreadsheet dashboards and pivot views that people rely on.
Re-test integrations
List every system that talks to Odoo: e-commerce stores, payment gateways, accounting tools, couriers, BI tools, scripts using the external API.
- Odoo 19 introduced the JSON-2 external API and marked the older XML-RPC and JSON-RPC endpoints as deprecated. Check the Odoo 20 release notes for the current status of these endpoints. Any script still using the old endpoints should be tested, and ideally moved, before go-live.
- Re-test webhooks and callback URLs.
- Re-test connector modules end to end on sandbox accounts: create an order, sync it, pay it, refund it.
- Check API keys and user permissions, since access rules can change with new versions.
After the upgrade
User acceptance checks
Give key users a written script on the upgraded test database, not just a login. For example:
- Sales: create a quotation, confirm it, deliver, invoice, register payment.
- Purchase: create an RFQ, receive goods, post the vendor bill.
- Inventory: run a stock count, check valuation.
- Accounting: compare the trial balance, aged receivables and tax report against the 19 database for the same date. The numbers must match.
- Manufacturing, POS, HR: the same idea, one full flow each.
Collect sign-off in writing. Unresolved issues get a severity and a decision: block go-live, or fix after.
Rollback plan
Write this down before go-live day, not during it.
- Keep the final Odoo 19 database backup and filestore, untouched.
- Keep the 19 code and server (or Odoo.sh branch) available.
- Define the decision point: by what time, and on which failures, you roll back.
- Define who decides.
- Note what happens to data entered in 20 if you roll back. Usually it must be re-entered by hand, so keep the window short.
Go-live day
- Announce the downtime window to users and integration partners.
- Stop all integrations and scheduled jobs that write to Odoo.
- Take the final backup of the 19 database and filestore.
- Run the production upgrade (upgrade service, Odoo.sh request, or OpenUpgrade).
- Deploy the 20.0 code and update custom modules.
- Run a short smoke test: login, one sale, one invoice, one report, one integration call.
- Compare the trial balance with the pre-upgrade backup.
- Re-enable integrations one by one, watching logs.
- Open to users.
The first week
Expect small issues: a missing access right, a report margin, a filter that behaves differently. Keep the people who did the migration available, watch server logs and failed scheduled actions daily, and keep the 19 backup until month-end closing is done in 20.
How Kalvyai can help
We build and migrate Odoo systems for Community, Enterprise and Odoo.sh, including porting custom modules, writing migration scripts, and re-testing reports and integrations. See our Odoo services and the apps we maintain at store.kalvyai.com. If you are planning an Odoo 19 to 20 migration, contact us with your module list and we will tell you what we see.
- Odoo
- Odoo 20
- Migration
- OpenUpgrade
- Odoo.sh
- ERP Upgrade
Kalvyai Engineering · Engineering team
The engineers who build, connect and fix business systems at Kalvyai: Odoo, ERPNext, Shopify and AI agents that work inside them with approvals, budgets and an audit trail.



Comments
No comments yet. Questions and corrections are welcome.
Rate this post or leave a comment