İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
4762 Görünümler

Hello, I'm using version 11 of odoo CE on a docker environment. 

https://github.com/OCA/OpenUpgrade
I would like to migrate this odoo database to the new version: odoo v12
many questions have been asked on the subject but I can't find clear enough answers to my taste. I would like to know how to carry out this migration, looking a little bit we always come back to openUpgrade: 

https://github.com/OCA/OpenUpgrade
and its documentation: https://doc.therp.nl/openupgrade/.
I must admit that it doesn't help me much, I can't find a clear explanation of how to use this script... 
In this question we find a clearer answer proposed by aktiv software: https://www.odoo.com/fr_FR/forum/aide-1/question/how-to-do-odoo-database-migration-by-using-https-github-com-oca-openupgrade-122800.
But there are no examples, moreover when I come across the documentaton I see a message from the author that the script does not allow to migrate to versions higher than 9?? (https://doc.therp.nl/openupgrade/migrate.py.html.) The author also recommends another method that I don't know how to use either... in short I'm lost in all of this my questions are as follows:

Does OpenUpgrade still work for an odoo 11 to odoo 12 migration?
Is there another simpler method? 
Are there any instructions / a clear and very complete tutorial showing all the steps to perform for a migration? (A video would be the best but a post with images and code examples will do very well)
If this does not exist, could someone try to explain as well as possible the steps to be taken to carry out this migration?

Thank you for the time you will take to answer me.


Avatar
Vazgeç
En İyi Yanıt

hello @Anatole,

please refer the below link it will help you out for sure :-

https://www.odoo.com/forum/help-1/question/how-to-do-odoo-database-migration-by-using-https-github-com-oca-openupgrade-122800

Regards,





Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   


Avatar
Vazgeç
Üretici En İyi Yanıt

Thank you for taking the time to answer Aktiv Software, 

I can't comment so I'll answer you here:
I have already seen this link (it is in the description of my question) and it raises some of my questions:
- Does OpenUpgrade still work for an odoo 11 to odoo 12 migration?
- Is there another simpler method?
The explanations are the best I have been able to find so far but they are not enough for me.

Avatar
Vazgeç

Hello @anatole,

Yes Openupgrade still work for Odoo 11 to Odoo 12 migration. But odoo 12 database migration script is still in progress. And it require some additional Postgres Queries after running migration script.

We didn't find any simpler method than openupgrade. As it is provided by OCA and include each aspect.

Regards,

Aktiv software.

Üretici

Thank you for your answers to those 2 questions !

Regards,

Anatole

Üretici

it meets my expectations on these two questions but not on the others, thank you anyway.

Üretici

Hello again Aktiv Software, I come back to you because I'm trying to put in place the steps you describe in this directory: https://www.odoo.com/forum/help-1/question/how-to-do-odoo-database-migration-by-using-https-github-com-oca-openupgrade-122800

You say that openupgrade still works for version 11 to version 12 of odoo. In this case I guess it has changed slightly:

"2) python migrate.py --config=[your openerp.conf] --database=[your database] --run-migrations=[your migrations]

--config = v9 config file(in which version you want to migrate)

--database = database which we would like to migrate (installed database)

--run-migrations = version in which you would like to migration"

- For the --config option : In the old versions the config file was "openerp-server" if I am not mistaken. However, this file no longer exists in version 12 of openupgrade (or at least it is not located in the same place / is not called the same)

- For the option --run-migrations: It is just necessary to specify the version ? so only 12 in my case?

If you have the possibility, can you give you an example of this command for migration 11 to 12?

Thank you very much for the time you will take to answer these questions.

Regards,

Anatole

Üretici

Um I'm sorry I thought the config file referred to a file from the openupgrade directory, it's actually the odoo conf file on my client machine.

However, I remain open to the example.