odooodoo-15

How do I use openupgradelib to update from odoo15 to odoo16?


When I try to update odoo from v15 to v16 (running in a docker environment) via openupgradelib I encouter two problems:

  1. some modules like account isn't migrated into the new database
  2. and in general the new database is as described as possibly not compatible with the new version 16

I have provided all necessary modules and run the update with the following command (parameters): -c ou_15_16.config --save --database odoo16 --upgrade-path=/mnt/extra-addons/openupgrade_scripts/scripts --load=base,web,account,openupgrade_framework --update all --stop-after-init

I'm using postgres 15.4 to store the database. Am I missing something? I get no errors while the upgrade is running only a list of successfull migrated modules. And no message that some modules like account aren't migrated and I don't see them in the new database.


Solution

  • First of all:

    Odoo images are not updated as frequently as the GitHub code, so they are more likely to give more errors when migrating. It is recommended to migrate in a directly installed environment, not in images. However, the process to migrate with docker is:

    Migration process:

    Openupgrade clone folder

    env variables file

    env variables

    database with error

    compose file volume configuration

    Final steps: