Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2215 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
helmik. 23
3123
3
elok. 25
2652
2
jouluk. 24
4136
0
marrask. 23
1354
0
lokak. 23
2161