Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2145 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lut 23
3053
3
sie 25
2557
2
gru 24
4079
0
lis 23
1334
0
paź 23
2141