This question has been flagged

I’m preparing myself for migrating old Odoo 8 instance to a new version 12. It should be done in the span of couple next months so there is some time for the preparation. 

I looked up into OpenUpgrade project from OCA:
https://github.com/OCA/OpenUpgrade

But to be honest the documentation over there is really poor and do not explain almost anything (or am I missing something?).
I’m aware that this is difficult process and should be performed by knowledgeable staff but still - the “documentation” does not document anything. And I have the time needed to get to know the procedure and test everything, so it is not like I want to get new version up and running tomorrow.
And from what I know there is some custom stuff in that old instance.

I saw some comments like the one in this topic:
https://www.odoo.com/forum/help-1/question/how-to-do-odoo-database-migration-by-using-https-github-com-oca-openupgrade-122800

But I would really appreciate an actual example. For example on how fill the parameters of the migration script etc.

Is there maybe some manuals or other sources I could read/watch to learn about this stuff? I know this is very broad question but I’m now aware of any other place I could get the knowledge I need.

Thanks

Avatar
Discard

there are proper documents avail

i have migrated db from 8 to 12 using migrate.py

let me find the doc and i ll share the link here.. just a min

Best Answer


You can not direct migrate v8 to v12.  First you need to migrate in v9 and then in v10,v11 and V12.

Basically these are the steps :

a) First You need to download two openupgrade libraby,

 1) https://github.com/OCA/OpenUpgrade/tree/8.0

 2) https://github.com/OCA/OpenUpgrade/tree/9.0


b) Install openupgradelib.

 1) Download openupgradelib from https://pypi.python.org/pypi/openupgradelib

 2) Install with command : sudo python setup.py install


c) Run Automated Migration script

 1) Go to specific path of openupgrade where you find 'migrate.py' file

 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


d) 'migration.log' file is created for error tracking.

e) If any error occured while migration script is running, need to solve explicitly the problem(by psql) and run migration script again.

f) New database is created in v9 'databasename_migrated' with '_migrated'.

copied answer,it ll work. 


Avatar
Discard

migate.py file has removed from OCA github.

Author

From where do I get `[your openerp.conf]` for each version?

copy paste ur conf change db name like eacy time u add _migrated

Author Best Answer

Is it good idea to prepare to migrate to version 13?

I'm asking more experienced users. Like if the support for new Odoo versions is good enough or is it better to stick to old one for longer?



Avatar
Discard
Best Answer

Hi! , i'm in the same situation here. I have to plan all the work for doing the migration from 8 to 12 but we have a lot of custom modules and information.


Any suggestions ?

Avatar
Discard

db u can migrate using the script, for custom modules u can look for the API changes and change your code according to it

eg- osv ->models

arguments ->self

search returned ids now its recordset.. etc etc

check the documentation for further references

Thanx Shalin ,

One more question , for a process like this where you must do migrations from 8 to 9 , 9 to 10, 10 to 11 and 11 to 12, is necesary to configure an ambience with each of the versions to test de migrated DB ? or only with the successfull log is enough ?

Thanks for all

Víctor

sorry for late replay,

u dont have to check at each time just get the db done at ur version and do the code change to ur last version