Stéphan Sainléger 3fe2e93d3d [IMP] use [[ instead of [ for conditionals
Replace single bracket [ ] with double bracket [[ ]] for all test
conditionals in the main scripts.

Benefits of [[ over [:
- No need to quote variables (though we still do for consistency)
- Supports regex matching with =~
- Supports pattern matching with == and !=
- && and || work inside [[ ]] without escaping
- More predictable behavior with empty strings
- Is a bash keyword, not an external command

Note: posbox scripts are left unchanged as they appear to be
third-party code imported into the repository.
2026-02-02 20:06:27 +01:00
2026-01-13 12:50:16 +01:00
2024-11-25 15:24:19 +01:00
2024-12-17 16:15:44 +01:00

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.

Description
No description provided
Readme AGPL-3.0 226 KiB
Languages
Shell 50.1%
Python 49.9%