This question has been flagged
5 Replies
11565 Views

Hello,

As explained in this issue:
https://www.odoo.com/fr_EN/forum/aide-1/question/openupgrade-11-12-ce-no-longer-possible-150878
It is no longer possible to use the script migrate.py if openupgrade to upgrade from version 11 to version 12 of odoo.


Do you know how to use openupgrade without this script ?

Scipt removal commitment: https://github.com/OCA/OpenUpgrade/commit/079b84ccd2f045a94476546a4d1fdec1fd1d5745#diff-d6c5855a62cf32a4dadbc2831f0f295f

Avatar
Discard
Best Answer

I think, your statement that OpenUpgrade doesn't work any more is not correct. The accepted answer in the referred question is a mistake.

The script 'migrate.py' is obsolete and it is stated in the documentation. This script was just to simplify. However, the system itself works: checked it about 2 months ago. The coverage is not full, but for now 11>12 is more or less Okay.

The point is in your understanding of OpenUprgade. OpenUpgrade is the Odoo code with migration scripts inside each module. As soon as you launched this code with your old database, it is updated to the newer version and simultaneously, migration is done (fields are converted, data is removed).

As for alternatives:

  1. You can ask Odoo to migrate your database (surely for remuneration)

  2. You can export/import tables (really time-consuming and error-prone)

  3. You can fix the errors manually by yourself as you launched the database on the newest code (requires much in understanding Odoo and much time)

There is no big sense to duplicate OpenUpgrade features. The result might be not better, but costs would be significant.

How to use OpenUpgrade

Follow the steps stated in the 'Manual migration': https://doc.therp.nl/openupgrade/migration_details.html. If to simplify: 

  1. Clone OpenUpgrade of the version you want to migrate (e.g. 12.0)

  2. Make your database backup (e.g. of the version 11)

  3. Launch Odoo using OpenUpgrade code (as you launch it with just Odoo code) and with your database (-d [Your Database])

  4. Follow logs > fix errors and process warnings; re-launch if something is changed.

  5. If everything is fine, the updated database is a migrated one. Launch standard Odoo for this database (I recommend to do so with updating base or all modules)

Avatar
Discard

At what point would you use the -d argument? my odoo servers have always started up automatically

Best Answer

Still, the instructors are not clear enough!

Would you please explain steps with example

thanks,

Avatar
Discard
Author Best Answer

Hello Odoo tools,

I can't comment, so I'll answer you here.
Thank you for taking the time to respond.
You're right, the answer to the other question has been modified.

You're right again in the sense that I don't fully understand OpenUpgrade. I don't know how to use this code because i think the documentation doesn't seem precise enough to use it. The script allowed to do this simply but without it how to do it to migrate? It is necessary to execute the "end-migration.py" script for all modules? If so, is there a specific order? Are there any detailed explanations and instructions to follow to carry out such an operation?

Thank you in advance, have a good day.
Anatole

Avatar
Discard

Anatole, I updated my answer with basic hints how to use OpenUpgrade.

Author

Thank you for that answer, I'll look precisely into it later.

This is already helping.