When I try to update odoo from v15 to v16 (running in a docker environment) via openupgradelib I encouter two problems:
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.
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:
In odoo 16: Create an image that contains the openupgradelib library(Modify Dockerfile).Ex:
FROM odoo:16.0
USER root
COPY ./requirements.txt /requirements.txt
RUN pip3 install -r /requirements.txt
RUN rm /requirements.txt
RUN apt-get update && apt-get install -y git
RUN pip3 install git+https://github.com/OCA/openupgradelib.git@master#egg=openupgradelib
Start odoo 16 server (Use: ENTRYPOINT=/usr/bin/python3 -m debugpy --listen 0.0.0.0:5678 /usr/bin/odoo -c /etc/odoo/odoo.conf ).
Final steps: