Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 2.23 KB

README.md

File metadata and controls

64 lines (40 loc) · 2.23 KB

0k-odoo-upgrade

Installation

  • Clone the current repo

Configuration

Usage

Before migration

  • import the origin database to migrate on local computer
  • Uninstall all known useless Odoo add-ons. Warning: do not uninstall add-ons for which the disappearance in the finale version is managed by Open Upgrade scrips.
  • Unsure all the add-ons are migrated in the final Odoo version
  • (optional) De-active all the website views

Local Migration process

  • launch the origin database ORIGIN_DATABASE_NAME with original version of Odoo, with odoo service ORIGIN_SERVICE
  • launch the following command:
./upgrade.sh {ORIGIN_VERSION} {DESTINATION_VERSION} {ORIGIN_DATABASE_NAME} {ORIGIN_SERVICE}

ex: ./upgrade.sh 14 16 elabore_20241208 odoo14

  • Inspect the list of add-ons identified as missing in the final Odoo docker image:
    • if you want to uninstall some of them:
      • STOP the process (N)
      • uninstall the concernet add-ons manually
      • launch the migration script again
    • if the list suits you, show can go on (Y)!

The migration process should run all the middle-migrations until the last one without action needed from you.

Deploy migrated base

  • Retrieve the migrated database (vps odoo dump)
  • Copy the database on the concerned VPS
  • vps odoo restore

Manage the add-ons to uninstall

The migration script will manage the uninstall of Odoo add-ons:

  • add-ons we want to uninstall, whatever the reasons
  • add-ons to uninstall because they do not exist in the final Odoo docker image

At the beginning of the process, the script compare the list of add-ons installed in the origin database, and the list of add-ons available in the finlal Odoo docker image.

The whole list of add-ons to uninstall is displayed, and needs a confirmation before starting the migration.

Customize the migration scripts

FEATURE COMING SOON...

Manage migration issues

As the migration process is performed on a copy of the orginal database, the process can be restarted without limits.

Some Odoo migration errors won't stop the migration process, then be attentive to the errors in the logs.