Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1675 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
feb 23
2754
2
dic 24
3651
1
ott 24
1903
0
nov 23
1167
0
ott 23
1952