Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2515 Vistas

I've been trying to do a migration from Odoo 9 to Odoo 10 using OpenUpgrade and following the documentation here; https://oca\.github\.io/OpenUpgrade/intro\.html

Unfortunately,\ the\ documentation\ is\ written\ with\ so\ much\ assumed\ knowledge\ as\ to\ be\ of\ little\ use,\ and\ some\ things\ just\ don't\ work\.\ For\ example,\ it's\ not\ possible\ to\ install\ openupgradelib\ when\ you're\ still\ on\ Python\ 2\.7\.\ This\ is\ reported\ here; https://github.com/OCA/openupgradelib/issues/159.

I've tried the official Odoo docker image for Odoo 9 along with various unofficial ones. Nothing works. I am assuming that the codebase required for running the migration is the version we're starting from, rather than the target, though this is only stated in a couple of blogs I've found, and not mentioned in the OpenUpgrade documenation.

I've found numerous blog articles that claim to show how to perform a migration, but that have such obvious errors that clearly they have not executed a migration at all. Some have even stated that you can migrate across multiple major versions in a single migration; contrary to the official documentation.

Clearly there's a lot of bad information out there. Does anyone have a single guide to migration that actually works?


Avatar
Descartar
Mejor respuesta

Hi

First, you can download the open upgrade migration script from OCA , add it to your odoo9 folder along with addons.

https://github.com/OCA/OpenUpgrade.git

Then install openupgradelib package using 'pip install openupgradelib'.run the following command in the terminal

./odoo-bin --addons-path=/opt/odoo/OpenUpgrade/addons,/opt/odoo/OpenUpgrade/odoo/addons --update=all --database=database_name --stop-after-init

Please check the following links for more clear

https://www.odoo.com/forum/help-1/detailed-instruction-for-migrating-odoo-8-12-with-openupgrade-155330

https://www.cybrosys.com/blog/how-to-migrate-odoo-database-using-openupgrade


Hope this Helps

Regards






Avatar
Descartar
Autor

Thanks for the prompt response, however this is a very simplistic explanation and one which doesn't work in the real world. For a start, as mentioned in my original post; openupgradelib doesn't install on Python 2.7.
I'm attempting to use this solution now; https://github.com/tools-utils/docker-odoo-migration and I seem to at least be able to get the migration to execute, however it's failing trying to insert data that violates unique constraints. I'm currently investigating if it's related to collation.

Autor

I also note looking at one of the links; https://www.odoo.com/forum/help-1/detailed-instruction-for-migrating-odoo-8-12-with-openupgrade-155330 that it suggests that you need to download two branches for a migrtion; one for the version you're migrating from and the other for the version you're migrating to. This doesn't seem to make any sense and is counter to what's stated in the documentation. Is this another example of bad information?

Publicaciones relacionadas Respuestas Vistas Actividad
0
may 23
2241
1
ago 19
4522
1
mar 15
5579
1
may 25
2036
1
abr 25
2160