Porting custom Odoo modules to a new version

Databases with custom modules cannot move to a new Odoo version until the module code is ported, tested and matched to the upgraded database. This page explains the work, the sequence and what drives its effort.

On this page

Why custom Odoo modules decide the timing of an upgrade

If your database carries custom modules, the upgrade date is set by the ported module code, not by the database. The database can be upgraded only after the custom modules have been ported and tested against the target version, so the code work is usually the longest path on the schedule. Odoo 17.0 standard support ended in September 2026, so a database still on 17.0 is no longer covered by standard support, including security updates and bug fixes. Odoo 18.0 is covered until September 2027, Odoo 19.0 until September 2028 and Odoo 20.0 until September 2029, according to Odoo's standard and extended support documentation.

The supported path is narrower than the version list suggests. On Odoo Online and Odoo.sh, major version upgrades are mandatory every two years, so a custom build that falls behind does not stay parked: it is pushed onto an upgrade the business did not schedule. Confirm with Odoo which hosting type you run and whether your version is still in standard support, because the answer sets your deadline. On-premise Enterprise databases can use Odoo's upgrade service, which requires an Enterprise subscription. The Community edition has no access to that service, so a Community database has to be moved with a different method, and the module porting effort is the same either way.

Before you commit to a target version, list every custom module, its source, and whether the standard features in the target release now cover what it does. Ask whether your Odoo partner or internal team can port each module and test it on an upgraded, neutralized copy of the database. Those answers, not the calendar alone, tell you whether a 17.0 to 18.0 step, a jump to 19.0 or 20.0 is realistic within the support window. Plan for the porting and testing time to be the item that moves the cutover date.

What changes between versions that affects custom modules

This table lists the change categories a custom module author must check when moving to a newer Odoo version, with the impact on code and the action to take. The supplied release facts do not name specific API, view or dependency changes, so each row tells you what to verify in the official release notes for your target version. Use it as a checklist before you estimate porting work.

Change categoryImpact on custom codeAction needed
Python and model API changesOverridden methods, field definitions and model inheritance may break or behave differently in the new releaseConfirm each changed method and field in the target version's release notes, then review every overridden model in your modules
Web client and view changesCustom views, JavaScript components and QWeb templates that extend standard views may stop rendering or need new markupCheck release notes for web client and view changes, then test every custom screen on the upgraded test database
Dependencies and platform requirementsModules may depend on a Python library, PostgreSQL version or module that changed or was removed in the target releaseConfirm required PostgreSQL and Python versions for the target release and update manifest dependencies in each module
Standard features that replace custom codeA custom feature may now exist in standard Odoo, creating duplicate behavior or conflicts with the core featureList each customization, check the target release for a matching standard feature, and decide whether to retire or keep the custom code
Data and migration scriptsSchema or data changes in standard models can leave custom fields, records or computed values inconsistentWrite pre and post migration scripts for each changed model and verify results on a neutralized, upgraded copy
External API and integration callsCustom code calling external APIs or Odoo's own interfaces may need changes if the interface or authentication method changedConfirm API changes in the release notes and retest each integration endpoint before cutting over production
Security and access rulesCustom security groups, record rules and access rights may no longer match standard groups or menu structureReview access control files and record rules against the target release and retest user roles

Preparing the code and the test copy before porting starts

Porting cannot start from a moving target. The items below fix what is being ported, from which code and which database, so that every later test result can be traced back to a known state. Each one produces a record the team keeps until cutover.

Full backup and neutralized test copy

Take a full backup of the production database and filestore before anything else changes, and keep it restorable. Then create a duplicate for testing and neutralize it so outgoing email, scheduled actions and payment or API connections cannot reach real customers or banks. Check that the duplicate is neutralized before anyone logs in. The duplicate is the database every ported module will be tested against, so its state must be recorded with the date it was taken.

On-premise docs

Inventory of custom and third-party modules

List every custom module, every OCA module and every Apps Store module installed in the database, with its source repository, the version it is pinned to, the person or vendor who owns it, and the business process it supports. Note any module that was edited in place on the server rather than kept in version control. This inventory is the scope of the porting work, and it is the first thing a partner or internal team should ask to see before estimating effort.

Code freeze on the source database

Agree a date after which no one changes the source database's configuration, custom code or data model, except through an approved exception. Without a freeze, fixes made during porting land only in production and never reach the ported code, and the test copy stops matching what users run. Record the freeze date, who can grant exceptions, and how any exception is merged into both the current and the target code.

Decision on customizations to drop

Review each customization against the target version's standard features. Where the standard app now covers the same process, the custom module may be retired rather than ported, which reduces code to maintain and test. Record each keep, drop or replace decision with the business owner who signed it. A drop decision also needs a data check, because the standard feature may store the same information in a different structure.

A repository branch per target version

Create a separate branch for each target version in the repository that holds the custom code, starting from the current production state. Keep the current branch unchanged so the production code can still be reproduced. Porting work, test fixes and migration scripts go to the target branch only. Ask the team to confirm how the branches map to deployed builds, because mismatched branches are a common cause of a test result that cannot be repeated on the production server.

Why freezing development on the source database matters

Every change made to the live source database or its custom module code while you port creates a gap between what production runs and what the new version runs. A fix shipped to production on Tuesday, such as a corrected field domain on a sales order or a patched report template, will not exist in the ported module unless someone copies it across. Data is the second gap. Customers, invoices, stock moves and approvals entered in production after the test copy was taken are absent from the upgraded test database, so a flow that works there may fail on the real data at cutover. Both gaps are silent. The ported code passes its tests on the copy you built, and nobody notices until a user reports a broken screen after go-live.

A freeze window closes those gaps by agreeing, in writing, which changes are paused on the source system and for how long. Development on custom modules stops, and urgent production fixes are allowed only through an exception path that is recorded. Alongside the freeze, keep a change log that lists every code commit, configuration change, security patch and data correction made during the window, with the module, the file or setting touched and the person who made it. The log is the working list for the port. When the ported code is ready and tested on the upgraded copy, the final delta port applies only the logged changes to the new version, followed by a fresh neutralized copy of the production database and a targeted retest of the affected flows. Confirm with your partner or internal team how long the freeze must run, since that depends on the size of the custom code and the testing scope, and confirm whether your hosting model allows you to block direct edits in production during the window.

How the port and upgrade sequence runs step by step

The sequence turns a database with custom modules into a tested, upgraded production system, with a check and a rollback point at every stage so the untouched source stays available until production is verified.

  1. Inventory and classify every custom module

    List every module installed on the source database, including custom code in the addons path, third-party and OCA modules, and Studio customizations. Classify each as kept as is, replaced by a standard feature, ported, or removed, and record its owner and dependencies. The step is done when the list is signed off by the business owner of each process. Rollback point: the source database and the current code branch are frozen and archived untouched, so nothing done later changes the baseline.

  2. Check each module against the target version

    For every module marked for porting, compare the source code with the target version's standard models, views and APIs. Look for overridden methods that changed signature, fields or views that were renamed or removed, and features now covered by standard Odoo. Record the findings per module, along with which ones need a migration script. The step is done when each module has a written port estimate and an agreed decision. Rollback point: the classification from step one is kept, so a module can be dropped without affecting the rest.

  3. Port modules in dependency order

    Port the modules that others depend on first, then move up the dependency tree so each module loads against already-ported code. Update manifests, inheritance and view references, and run module install checks on a development instance at each stage. The step is done when every module installs cleanly on the target version in a fresh database. Rollback point: each ported module is committed on a separate branch or tag, so a failing module can be reverted without losing the others.

  4. Write migration scripts for data model changes

    Where the target version changes field types, selection values, model names or stored computed fields, write pre and post migration scripts that transform existing records. Test each script against a sample of real data shapes from the source. The step is done when every script runs without error on a copy and the affected records match the expected values. Rollback point: scripts are versioned and reversible in the development copy, and the source database remains untouched.

  5. Run the upgrade on a neutralized copy

    Duplicate the source database, neutralize it so outgoing email, payment providers and scheduled actions cannot reach live systems, and run the upgrade with the ported code. Use the Enterprise upgrade service or the Community path that fits your edition. The step is done when the upgrade completes and the log shows no unresolved module errors. Rollback point: the neutralized copy is discarded and rebuilt from the untouched source if the upgrade fails, with no effect on production.

  6. Test module behavior and fix defects

    Run the key business flows on the upgraded copy: order to invoice, stock moves, approvals, reports and PDFs, and each custom feature against its written acceptance criteria. Log every defect against the module and owner, fix it in the code branch, and rerun the affected flows. The step is done when every defect is closed or accepted in writing by the process owner. Rollback point: each fix is a separate commit, so a regression can be traced and reverted.

  7. Repeat the rehearsal on a fresh copy

    Rebuild the upgraded copy from the untouched source with the final code branch and run the full sequence again from the start. Compare the results with the first rehearsal and confirm that fixes and scripts behave the same on a clean run. The step is done when a complete rehearsal passes with no manual steps that were not written down. Rollback point: the runbook records each command and check, so the cutover can be repeated exactly.

  8. Cut over production and verify before retiring the source

    Schedule the cutover, freeze changes to the source, run the migration on production with the verified code, and reactivate outgoing email, payments and scheduled actions only after the post-upgrade checks pass. The step is done when the business owners confirm the critical flows in production. Rollback point: the untouched source database, its filestore and the previous code branch are kept until production is verified and the agreed retention period has passed, so a return to the old system is still possible.

How porting, the test copy and cutover connect

The diagram starts with the source database and the custom module branch, which feed two tracks: an inventory of what each module depends on and the porting work on the code. Both meet at the upgraded, neutralized test database, where the test and fix loop runs until the team is satisfied. A rehearsal on a fresh copy comes before production cutover, and the rollback path stays open until the new system is confirmed. Check that every module has a ported version before the rehearsal starts.

Flow from source database and code to test copy, rehearsal and cutover.

When a module needs a migration script and when it does not

A migration script is needed when a new version changes how data is stored. If a custom module adds fields, renames a model, changes a selection value or moves values from one field to another, the database rows created under the old structure will not match the new code. Odoo's own migration framework runs scripts in pre and post stages around the module update, so the script can rename columns, convert values or fill new required fields before or after the ORM loads the data. Without it, records can load with blank values, and reports or computed fields can fail silently.

  • Pre-migration scripts: rename or convert columns before the new ORM reads them.
  • Post-migration scripts: recompute stored fields, fill new required values and clean up orphaned records.
  • Data volume: large tables take longer, so time the script on a copy of real data.
  • Test copy: run the upgrade on a neutralized copy, then compare record counts and sample values with the source.
  • Author confirmation: ask the author which models changed, whether any fields are stored or computed, and whether the module ships its own scripts.

Check the outcome with business records, not only with the module installing without error.

What makes porting custom Odoo modules take longer

This table lists the factors that move the effort of porting custom Odoo code to a new version, the direction each one pushes, and what to ask for in a quote. Read each row against your own codebase, since the same module count can mean very different work depending on how deeply the code touches core views and models. The main takeaway is that inheritance depth, unported third-party code and integrations usually matter more than the raw number of modules.

DriverEffect on effortWhat to ask for in a quote
Number of custom modulesMore modules mean more code to read, port, test and review, and effort rises roughly with the count of modules that actually changeA module-by-module inventory with a status for each module (keep, port, replace or retire)
Depth of inheritance on core views and modelsDeeply inherited views and overridden methods break more often between versions, so each one needs manual checkingA list of core models and views each module extends, with the number of overrides per model
Third-party or OCA modules without a portEach unported dependency either waits for a community port or must be written by the partner, which can block the whole databasePort status for each dependency against the target version, and who owns any gap-filling work
Odoo Studio customizationsStudio changes are stored as database records rather than code, so they must be reviewed and rebuilt or exported into modules during the upgradeA count of Studio views, fields and automations, and a plan for each one
Reports and PDFsReport templates and layouts change between versions, so each custom report needs visual and data checks against the new outputA list of custom reports, documents and print formats with the expected review method
Integrations using the external APICode calling the API or XML-RPC endpoints must match the new interface, and each integration needs its own end-to-end testsThe integrations in scope, their endpoints, and whether the partner or your team tests against the upgraded copy
Data volumeLarger databases lengthen migration script runs and test cycles, and can expose performance issues only at production scaleExpected test-run times on a neutralized copy and the number of rehearsal runs assumed
Number of target versions crossedEach major version adds a separate port and test pass, so a jump across several releases multiplies the workThe version path proposed, with each intermediate step and its porting work listed separately

Questions buyers ask about porting custom Odoo modules

What does porting custom Odoo modules cost and what drives the price?

The cost is set by how much of each module changes between versions, not by the number of modules alone. You pay for code review, rewriting views, models and inherited methods that moved, testing, and the migration scripts that move data into the new structure. Each custom module that touches a changed standard feature adds analysis and rework. A written scope lists each module, its dependencies and the tests that prove it works. Ask for a quote that separates one-time porting work from any recurring support, since porting itself is a one-time cost while later upgrades and support are recurring. DeployOpen does not publish prices, so the quote follows from the written scope.

How long does it take to port custom Odoo modules?

Duration depends on the code, so no fixed number applies to every codebase. The main drivers are the number of custom modules, how deeply they inherit standard Odoo code, how many changed features they rely on, and how much test coverage already exists. A small set of modules that only add fields and reports usually ports faster than modules that override core business logic. The development freeze, the test database request and the rehearsal on an upgraded copy also set the calendar. Ask the partner to show the module inventory and the list of risky dependencies before agreeing a timeline in writing.

What does our team need to provide before porting starts?

The team needs to supply the full source of every custom module, the Git history or a clean repository, the list of installed Community, Enterprise and OCA modules with their versions, and a current database copy for analysis. You also need named business owners who can confirm key flows, such as invoicing, stock moves, payroll exports and approvals. Access to the test environment, the integrations and their credentials, and a decision on which features to keep, change or drop should be ready at kickoff. Missing inputs usually cause the largest delays, so confirm this list with the partner in the written scope.

Can our in-house developers port the modules themselves?

Yes, if they have Odoo development experience, access to the upgrade path and time to test. In-house teams know the business logic best, which helps with decisions about what to keep. The risk is capacity and familiarity with changes between versions, since the work competes with daily support and the freeze period must be respected. Before deciding, check the Odoo upgrade documentation for the version you target, count the custom modules, and assess whether anyone has upgraded a module before. Many organizations split the work, keeping business decisions in-house and bringing in outside help for the technical port and testing.

Why does the production database wait for the ported code?

Odoo loads each installed module on the new version, so a custom module that has not been ported can stop the upgraded database from starting or leave data unreadable. The standard upgrade moves the database and its standard modules, but it cannot run code that has not been rewritten for the new APIs. Production therefore waits until the custom code loads cleanly on a test copy. Development is frozen for the same reason: changes made during porting would otherwise miss the upgraded version. Odoo's upgrade service uses an upgraded test database that should be tested before production, which is the point where ported code gets proven.

How do we test ported modules before going live?

Test on an upgraded copy of the production database, not on the old system or a blank install. On-premise Odoo supports database duplication with neutralization for test copies, which prevents test systems from sending real email or calling live payment and integration endpoints. Cover key business flows, reports, scheduled actions, integrations and data checks, and compare results with the old system for the same records. Keep a written list of defects, fix them in the repository, and repeat the run until the tests pass. Schedule at least one full rehearsal before the production cutover so the final run is timed and documented.

Does porting cover security patches and later upgrades?

No, porting only makes the custom code run on the target version. Odoo standard support covers the first three years after a major release on Odoo Online, Odoo.sh and on-premise, including security updates and bug fixes, and security patches are only provided during that standard support window. After standard support ends, paid extended support is limited to Odoo.sh for select versions and on-premise. Ask the partner whether ongoing support, upgrades and continuous testing are covered under a retainer, and whether the ported modules will need changes when future Odoo releases arrive.

How the porting work is divided between your team and ours

Your business owners decide which customizations survive the upgrade. Before any code is ported, they should review each custom module and each change to a standard screen, report or workflow, then mark it as keep, replace with a standard feature, or retire. That decision belongs to the people who run the process, because a porting team cannot judge whether a custom approval step still matters to finance or operations. Record each decision against the module name and version so the list can be checked later. Developers, on the other hand, own the technical answer to each decision: whether a module needs to be rewritten against the new version's APIs, whether a view inheritance still applies, and whether a migration script is needed to move data into a changed model.

DeployOpen's developers port the retained modules, write migration scripts where the data model changed, and run the test suite against an upgraded copy of your database. Work is done on a frozen development branch so the target version is not chasing a moving codebase. Testing runs on a database copy with neutralized settings, so outgoing email, payment connectors and scheduled actions do not reach real customers. Your team approves the results. Business owners sign off the test cases that cover their processes, and the client records any defect they accept as a known issue. Acceptance is the client's decision, not DeployOpen's.

Engagements are fixed-scope. The module list, the deliverables, the test scope and the approval steps are agreed in writing before porting starts, so changes to the list after that point go through a written change. Ask for the scope document to name each module, its target version, the owner who approves it and the test evidence you will receive. DeployOpen prepares that evidence, including test records and migration logs, but it does not issue audit reports or attestations. If your compliance team needs independent assurance over the upgraded system, plan that with an auditor separately.

How DeployOpen scopes, ports and supports Odoo module upgrades

DeployOpen treats custom module porting as its own work package inside an Odoo upgrade, with the code scoped and tested against an upgraded copy of your database. The work is planned in writing before the build starts, so each module has a named owner, a target version and a test result.

How we scope

  • Inventory every custom module, its dependencies, and the Odoo version it currently targets.
  • Compare each customization with the standard features in the target version to flag modules that may be redundant.
  • Agree in writing which modules are ported, replaced, or retired, with deliverables and timelines set before work starts.
  • Confirm whether your edition and hosting type support the custom modules you run, since this affects the upgrade path.

How we build

  • Freeze development on the affected modules so the port targets a stable codebase.
  • Port each module to the new version's APIs and write migration scripts for changed data structures.
  • Run the ported code against a neutralized, upgraded test database and record every failure for review.
  • Keep ported modules in version control so each change can be reviewed, reproduced and rolled back.

How we hand over

  • Deliver ported source code, migration scripts and a list of replaced or removed customizations.
  • Document test cases, results and known gaps so your team can repeat the checks on a later upgrade.
  • Walk your developers through the changes to the module code and the reasons behind each decision.
  • Confirm the handover checklist with your team before the production cutover is scheduled.

How we support

  • Offer ongoing support and upgrade work as a retainer once the initial port is complete.
  • Review new customizations against the target version's standard features before they are built.
  • Plan the next major upgrade early, since Odoo Online and Odoo.sh require major upgrades every two years.
  • Ask your provider to confirm response scope, testing cadence and retainer terms in the written quote.

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.