Skip to Content
Menú
This question has been flagged
1 Respondre
1665 Vistes

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 and 2) 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. And no message that some modules like account aren't migrated but I don't see them in the new database.

Avatar
Descartar
Best Answer

Hi,


Make sure you’ve cloned the OpenUpgrade repo correctly and switched to the 16.0 branch:

git clone https://github.com/OCA/OpenUpgrade.git && git checkout 16.0.


Check that the account module migration scripts exist in the folder:

openupgrade_scripts/scripts/account. If the folder is missing, the module won't be processed.


If you had cloned earlier, run git pull origin 16.0 to ensure you have the latest scripts.


If the account wasn’t marked as installed in the Odoo 15 database (ir_module_module.state = 'installed'), OpenUpgrade won’t migrate it.


Add --log-level=debug_sql to your upgrade command to check if any module (like account) is being skipped silently.


You can refer to this blog for a complete working guide on how to upgrade using OpenUpgrade:

https://www.cybrosys.com/blog/how-to-upgrade-the-odoo-15-database-using-openupgrade


Hope it helps.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de febr. 23
2736
2
de des. 24
3645
1
d’oct. 24
1878
0
de nov. 23
1157
0
d’oct. 23
1943