Upgrading Odoo databases that use OCA modules

A practical guide to upgrading an Odoo database that depends on Odoo Community Association modules: module status checks, replacements, migration scripts and testing before cutover.

On this page

Upgrading Odoo databases with OCA modules: what sets the path

The upgrade of a database that runs OCA modules is gated by the slowest module, not by the Odoo core. A Community or Enterprise database with OCA modules can only move to a supported release once every installed OCA module has a version that works on the target, so the core upgrade is rarely the item that sets the timeline. Start by listing every OCA module in the database, its installed version, and whether a ported version exists for your target release. Confirm this per module with the OCA repository for that branch, because port status changes between versions and the OCA does not guarantee a port for every target.

The Enterprise upgrade service is not available to Community databases. Odoo's upgrade documentation states that the Community edition has no access to the upgrade service, and on-premise use requires an Enterprise subscription. For a Community database, the core move runs through OpenUpgrade, which migrates one major version at a time. An OCA module that is missing a migration script for one step can block the whole chain, so confirm for each module whether it has scripts for every intermediate version, or whether you must write them yourself. Plan the gaps first, because a missing script found at the last step resets the schedule.

The target version and its support window set the deadline. Odoo standard support covers the first three years after a major release, and security patches are only provided during standard support, so a target that is close to the end of its window creates a second upgrade soon after the first. Odoo 19.0 (September 2025) has standard support until September 2028, and Odoo 20.0 (September 2026) until September 2029, so choose the target against those dates and the timing of your next upgrade. On Odoo Online and Odoo.sh, major upgrades are mandatory every two years, which also limits how long a database can wait. Record each OCA module as ported, replaceable by a standard feature, or unresolved, and treat any unresolved module as the item that decides the target.

Which Odoo changes force an OCA module decision

This table lists the Odoo support, upgrade and release rules that affect which OCA modules you can keep, port or replace, and when. Each row changes module choice or timing, not only the code, so read each row as a planning input before you pick a target version. The main takeaway is that an OCA module must be checked against the version you will run when support ends, not only the version you run today.

ChangeImpact on OCA modulesAction needed
Odoo 17.0 standard support ended in September 2026OCA ports for 17.0 no longer receive security patches from Odoo, so a module that is still on 17.0 carries that gap into the upgrade.Confirm whether each OCA module has a 18.0 or later port before you start, and record which modules have no port.
Odoo 18.0 standard support runs until September 2027Databases on 18.0 must move to a newer major version before standard support ends, so OCA module ports need to exist for the next target.Check port status for 19.0 or 20.0 per module and set a go or no-go date for each module that lacks one.
Odoo 19.0 standard support runs until September 2028Modules you port to 19.0 now carry a shorter remaining support window than 20.0, which affects how long they stay on a supported base.Decide whether to target 19.0 or 20.0 for the port, based on the OCA module versions available and your own change schedule.
Odoo 20.0 standard support runs until September 2029Modules ported to 20.0 have the longest remaining standard support window in this table, but their OCA ports may be newer and less tested.Verify that every OCA module you depend on has a 20.0 branch and test it on an upgraded neutralized copy.
Security patches only during standard supportExtended support does not provide security patches, so an OCA module running on an out-of-support version has no vendor patch path for Odoo core code it depends on.Map each OCA module to the Odoo version it depends on and flag any that will run past standard support.
Extended support limited to Odoo.sh for select versions and on-premiseExtended support on your own servers is an option for select versions only, so OCA modules on other versions cannot rely on it.Ask Odoo which versions are covered for on-premise extended support before you decide to stay on an older base.
SaaS releases every two to three monthsOdoo Online and SaaS databases cannot use extended support, so OCA module changes must keep pace with frequent core releases.Confirm the release channel you run and schedule OCA module retests against each release you adopt.
Community edition has no access to the upgrade serviceOdoo's upgrade service is not open to Community databases, so OCA module users on Community must use OpenUpgrade or another documented path.Check which OCA modules your Community database depends on and plan OpenUpgrade runs for each module that needs migration scripts.
On-premise upgrades need an Enterprise subscriptionIf you use the Odoo upgrade service on your own servers, you need an Enterprise subscription, and the Enterprise module set may replace some OCA modules.Compare each OCA module with Enterprise features before you choose the upgrade path, and confirm subscription terms with Odoo.
Mandatory major upgrades every two years on Odoo Online and Odoo.shOn these hosting types, OCA module ports must be ready within a fixed cycle, so a module without a port can block a required upgrade.Build the module port schedule around the mandatory upgrade cycle and confirm the upgrade date with your Odoo hosting provider.

How to classify each OCA module before you commit to an upgrade

Every OCA module in your database lands in one of a few outcomes for the target version, and each outcome sets a different amount of work. Classify them one by one before you estimate the project, because the mix of outcomes decides whether you port, replace, rebuild or drop each module.

Target version port exists

The OCA repository has a branch for your target version with the module on it. Confirm the branch name matches the target exactly, then check the module's manifest version, its open issues and the last commit date. Compare its declared dependencies with the ones you use, and confirm the port has been merged rather than sitting in a pull request. A merged port still needs your own tests, because your data and customizations are not in the OCA test suite.

Odoo GitHub repository

Port exists for an intermediate version only

Some modules have ports for one or more intermediate versions but none for your target. Your path then runs through each step, which adds one migration per version and one round of testing per version. Record the last version with a usable port, list every branch between it and the target, and ask whether the module's functional gaps at each step are acceptable for your business.

Module covered by a standard feature

Check the target version's standard features before you port anything. Many modules that customers once installed for a missing function are now part of core Odoo or an Enterprise app. Compare the module's functional scope with the standard feature's settings, then check which data the old module created, such as custom fields, menus or security groups, and plan how those records move to the replacement.

Migration script available in OpenUpgrade

OpenUpgrade publishes migration scripts for many standard modules, moving data from one major version to the next. An OCA module that depends on a standard module inherits that path only if the script covers the fields and models your module uses. Read the script for the version step you need, confirm it covers your custom fields, and run it on a neutralized copy before you rely on it.

No port and no standard equivalent

Some modules have neither a target port nor a standard replacement. These need a decision: port the module yourself, keep it on a fork, rebuild the function as a custom module, or remove the feature from the business process. Estimate the porting effort from the module's size, its use of deprecated APIs and its tests, and ask a partner to quote the port against a written scope.

Module deprecated or unmaintained for the target

A module can be marked deprecated, archived or left without commits for a long period. Confirm its status in the repository, look for an active maintainer and open security issues, and check whether the upstream project names a successor. If the module has no maintainer, treat it as a custom module you own from that point, and record who is responsible for its future fixes.

Every OCA module takes one of four paths before production

The decision starts with an inventory of every OCA module installed in the source database, including the version each one runs. Each module is checked in order: whether a standard feature now covers it, whether a port exists for the target version, and whether a port exists only for an earlier version. Modules with no usable port are either ported by your team or removed from scope with the business owner's sign-off. Every path ends at a test gate on a neutralized upgraded copy, and nothing reaches production until that gate passes.

Decision path for each OCA module, ending at a test gate before production.

What to prepare by starting point: Enterprise or Community

On an Enterprise database, Odoo's upgrade service builds an upgraded test database for the target version. Start by confirming in writing that your subscription covers that target and your deployment model, because on-premise use requires an Enterprise subscription and the service is not available to Community databases. Then request the test database, test it fully, and only after that plan the production cutover. The service upgrades the standard code, so your OCA modules still need a separate check.

  • Subscription coverage: Ask Odoo to confirm that your subscription and activation code cover the target version and the on-premise installation you run.
  • Full backup: Take a full backup of the database and the filestore before you submit the request, and keep it until the upgraded system is accepted.
  • Written inventory: List every custom and OCA module with its installed version, source repository and a status for the target version: ported, replaced by a standard feature, or needs work.
  • Neutralized test copy: Use a neutralized copy of production for the test run so outgoing email, payment settings and scheduled actions do not reach live systems.
  • Test database request: Record the date you asked for the upgraded test database and the source version it was built from, so the test results match the data you tested.

Before you submit the request, check the subscription terms and the OCA inventory, because a coverage gap or an unported module can stop the upgrade at the testing stage.

The upgrade sequence for OCA-dependent databases

This sequence turns an OCA-dependent upgrade into a repeatable path, where each module has a known status, each migration step is tested on a copy, and production stays untouched until the rehearsal passes.

  1. Freeze development on the source database

    Stop changes to custom code, OCA modules and configuration on the source version so the upgrade targets a fixed baseline. The team agrees who may still change data, how exceptions are logged and when the freeze lifts. Done means the source repository is tagged or branched at the frozen commit, and every change request raised during the freeze is queued for the target version rather than applied to production. Rollback point: the untouched production database and filestore remain the reference copy throughout the project.

  2. Inventory modules and dependencies

    List every installed module on the source database, including OCA, Apps Store, custom and Enterprise modules, with its exact version, source repository and commit. Map dependencies between them, such as which custom modules inherit from OCA models, and note any module installed but unused. Done means you have a single inventory file that lists each module, its origin and its dependents. Record the source database name, Odoo version and PostgreSQL version so the upgrade can be reproduced. Rollback point: the inventory is read-only and changes nothing in production.

  3. Classify each OCA module by port status

    For each module, check the OCA repository for the target version branch and record whether a ported version exists, is in progress or is missing. Classify each module as one of four outcomes: already ported and usable, replaced by a standard feature in the target version, ported by your team, or dropped. Confirm the classification with the module maintainers or the OCA community where status is unclear. Done means every module has a single classification and an owner. Rollback point: no code changes yet, so the classification can be revised without touching the source system.

  4. Replace or port modules for the target version

    Install the chosen target-version OCA branches or standard features in a development repository, remove modules replaced by standard functionality, and port the remaining custom code. Where OpenUpgrade is used, check that each module has migration scripts for every major version between source and target. Repeat the version step for each intermediate major version, because OpenUpgrade moves one major version at a time. Done means the repository installs cleanly on an empty database for the target version. Rollback point: the work lives in a branch, and the source repository stays at the frozen commit.

  5. Run migration scripts on a neutralized copy

    Duplicate the production database and filestore, neutralize the copy so it cannot send email, call payment providers or contact external services, and run the migration scripts on that copy one major version at a time. Log every script that fails, warns or skips data. Done means the copy reaches the target version with no failed scripts and the module update completes. Rollback point: production is never the migration target, so the copy can be dropped and rebuilt as many times as needed.

  6. Test the upgraded copy against defined checks

    Run the checks agreed before the build: key business flows, reports and PDFs, integrations and API calls, scheduled actions, data checks and performance on representative records. Compare totals, open balances and stock quantities against the source copy. Each failure gets an owner and a fix, followed by a rerun of the affected migration step from the clean copy. Done means every check is signed off by the business owner and the data checks match. Rollback point: the source copy and the first migration output stay in place, so a failed fix never overwrites the last known good state.

  7. Rehearse the cutover end to end

    Run the full sequence once more on a fresh copy of production, timing each stage and recording the exact commands, configuration changes and manual steps. Confirm that the cutover plan includes how integrations and scheduled actions are switched on and how email and payment settings are restored. Done means a rehearsal completes with the same results as the earlier test run and the runbook is updated from what the team actually did. Rollback point: if the rehearsal fails, production is still on the source version and the rehearsal can be repeated.

  8. Cut over production and keep the source intact

    Schedule a window with the business owners, put production into read-only mode, take a final backup, run the rehearsed steps on production and then verify the checks from the testing stage. Switch on integrations and scheduled actions only after the data checks pass. Done means production runs on the target version, the sign-off record is filed and the source database and filestore are retained as an archive for an agreed period. Rollback point: until the agreed retention period ends, the untouched source backup and filestore allow restoration if a problem appears after go-live.

Testing OCA changes on an upgraded copy and rolling back safely

A module from the Odoo Community Association that installs cleanly on the upgraded copy has not yet proven it behaves like the one it replaces. Installation success says nothing about business behavior. A replaced module can change how a sales order is confirmed, how a stock move is valued, how a report is totalled or when a scheduled action fires, and none of that shows up as an error at install time. For each replaced module, list the business flows it touched on the source database, including the screens users open, the reports and PDFs they print, the scheduled actions it ran, and any API calls or integrations that read or wrote its fields. Those flows become the test scope. Confirm the list with the people who own each process, because the developer who wrote a customization is rarely the person who knows which invoices depend on it.

Keep the source database untouched as the rollback target until the business has accepted the cutover. The upgraded database is built from a copy, so the source remains the only place where pre-upgrade behavior can be checked side by side. Before cutover, compare the upgraded copy with the source for each replaced module: the same test records run through old and new behavior, field values on a sample of records, report totals, scheduled action logs and the payloads that integrations receive. Also ask your test owners what evidence they need to sign off, since that decides how long the source must stay available.

A rollback is not free. Any record created or changed on the upgraded production database after cutover exists only there, so returning to the source means either re-keying that work or running a reconciliation to carry it back. Ask your partner and your own team to estimate that window in advance, and decide who approves a rollback and how long the source stays live. Confirm the retention and restore arrangements for the source with your hosting team, and check with your Odoo partner or Odoo's upgrade documentation at Odoo upgrade documentation how the Enterprise upgrade service handles the test database in your case.

What makes an OCA-based upgrade take longer

This table compares the factors that expand an OCA-based Odoo upgrade and what each one asks of the team and the quote. Read each row as a question to answer during scoping, because the largest effort usually comes from modules that have no port for the target version and from custom code built on top of OCA code.

DriverEffect on effortWhat to ask for in a quote
OCA modules with no port for the target versionEach missing port means someone writes, reviews and tests the module before the database can move, and this often dominates the scheduleA module-by-module list showing the target version status, who ports each gap and whether the port is in or out of scope
Modules replaced by standard features that change data or menusRemoving or switching to a standard feature needs data mapping, menu and access rule checks, and users must relearn screensWhich OCA modules map to standard features, what data moves and what users will see differently
Custom modules that depend on OCA codeCustom code breaks when an OCA dependency changes, so both layers must be ported and tested togetherA dependency map showing which custom modules import OCA code and which OCA versions they target
Number of intermediate versions to pass throughOpenUpgrade moves one major version at a time, so each extra hop adds a migration run, a check and a test passThe planned hop sequence, the migration script source for each hop and the test gate between hops
Database and filestore sizeLarger databases take longer to migrate and test, and filestore merges and attachment checks add workAssumptions about database and filestore size, the test copy method and who runs the timed migration rehearsals
Integrations and scheduled actions to testEach integration and cron job needs its own test case on the upgraded copy, and API changes may require code changesA list of integrations, API calls and scheduled actions in scope, with the test evidence expected for each

Questions buyers ask before upgrading OCA-dependent Odoo databases

What does it cost to upgrade an Odoo database that uses OCA modules?

The cost is set by how many OCA modules need porting, how many custom modules sit beside them, and how much testing the business requires. Cost has three parts: analysis of each module's port status, code work on modules that have no port for the target version, and validation on an upgraded test copy. Some of this is one-time project effort. Hosting, subscriptions and any ongoing maintenance of ported modules recur. Ask any partner for a quote that lists each module separately, with its source (OCA, OpenUpgrade or your own code), the expected porting action, and the testing hours for business flows. No figure is given here because the amount depends on your module list and environment.

How long does an OCA-dependent Odoo upgrade take?

Duration depends mainly on the number of modules without a ready port for the target version, the size of the database, and how long business testers need to sign off. A database that runs only standard features and well-maintained OCA modules takes far less time than one with abandoned community modules and in-house code. Migration scripts, the filestore and the freeze window also add time. Ask for a schedule that separates the module inventory, porting, the upgraded test database, the business test cycle and the cutover rehearsal, and confirm which of those steps your own staff must provide.

Can our own team upgrade the database without a partner?

Yes, if you have developers who know Odoo's ORM, the OpenUpgrade migration model and your module code, plus a test environment that matches production. Many teams manage the platform work in-house and bring in outside help only for the hard modules. The risks are gaps in testing and lack of time for porting. Before deciding, list the people who will own each module, confirm they can run the target version locally, and check whether they can keep up with the upgrade while maintaining production.

What do we need from our staff during an OCA module upgrade?

You need three groups. Business testers must run key flows on an upgraded, neutralized copy and record what breaks. Module owners must explain what each custom or OCA module does in your process, and approve changes that affect it. Leadership must agree a freeze window in which no new configuration or code changes reach production, so the upgraded copy matches the live data. Without a freeze, the cutover database and the tested database drift apart. Confirm names, availability and sign-off rules before the schedule is fixed.

Can we drop OCA modules and use standard Odoo features instead?

Often yes. Some OCA modules cover functions that later Odoo versions include in the standard product, so the replacement can be a configuration change plus a data mapping rather than a port. Check each module against the target version's standard features, then document what the replacement changes, including field names, reports, and any scheduled actions. Remove a module only after business owners confirm the replacement covers the process, and test the mapped data on the upgraded copy before cutover.

When is Odoo Enterprise the cheaper path than an OCA-based upgrade?

Enterprise can be cheaper when your database depends on many OCA modules that have no current port, because the upgrade service moves the database to a newer supported version and Enterprise features may replace community modules. Note that on-premise use requires an Enterprise subscription, and Community has no access to the upgrade service. Compare the recurring subscription cost against the one-time porting and the ongoing maintenance of community modules. Also check whether the modules you need are available in Enterprise, and whether your hosting, multi-company needs or custom modules require the Custom plan on Odoo.sh or on-premise.

What happens if the target version's support window is short?

Odoo's standard support covers the first three years after a major release, including security updates, and paid extended support after that is limited to Odoo.sh for select versions and on-premise. Security patches come only during standard support. Odoo 18.0 is in standard support until September 2027, and Odoo 17.0 standard support ended in September 2026. If the target has a short remaining window, you will face another upgrade sooner, so plan the next step before starting. Ask the partner to show the support dates for both your current and target versions, and whether a later jump is cheaper than a stepwise path.

Can DeployOpen take on an OCA module upgrade under a fixed scope?

DeployOpen plans, implements, customizes, integrates, backs up, upgrades, documents and supports self-hosted open-source platforms in your own infrastructure, and most engagements are fixed-scope. The scope, deliverables and timeline are agreed in writing before work starts, and a quote follows from that written scope. DeployOpen does not publish a price list. Provide your module inventory, environment details and business test owners so the scope can reflect what is actually in the database.

How DeployOpen scopes and delivers OCA-aware Odoo upgrades

DeployOpen treats the OCA module inventory as a scoping input, not an afterthought. We check each module's port status against your target Odoo version, decide what to replace, port or write ourselves, and test the result on a neutralized copy before any production cutover.

How we scope

  • Inventory every installed OCA module with its source branch and the Odoo version it was written for.
  • Mark each module as already ported, replaceable by a standard feature, portable, or requiring custom work.
  • Agree the written fixed scope, deliverables and timeline with you before the upgrade work starts.

How we build

  • Run OpenUpgrade migration steps one major version at a time against a copy of your database.
  • Port or replace modules in a controlled repository and record every change to the migration scripts.
  • Test upgraded databases with your key business flows, reports, integrations and scheduled actions before production.

How we hand over

  • Deliver a module status register listing each OCA module, its decision and its verified version.
  • Document migration scripts, gap fixes and the test results so your team can repeat the process.
  • Walk your developers and administrators through the cutover runbook and the rollback steps.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the handover.
  • Confirm with us which OCA branches and dependencies you will need to track between major versions.
  • Plan the next upgrade window early, since major versions on Odoo Online and Odoo.sh follow a mandatory two-year cycle.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.