Community mailing list archives
Re: Script to upload a DB to odoo migration serviceby
Apertoso, Jos De Graeve
I was not aware of an api for the migration service. That's great. I'll look into it.
2016-06-07 8:22 GMT+02:00 Oliver Laurent <firstname.lastname@example.org>:
Thanks for sharing this script. It will be helpful for a lot of people I think.
It's not very well advertised but do you know that the Upgrade service has an API ?
It's documented here:
with examples using Python and bash.
You can, for example, create an upgrade request, upload the database and get the status of the request.
It's probably safer than directly using the html form which could eventually change at some time (although nothing is planner so far).
And the result you get is directly usable by scripts (you get results as JSON in fact)
And as Fabien said, we are thinking of integrating this feature directly in odoo.py
On 06/06/16 20:42, Jos De Graeve wrote:
As i frequently do odoo upgrades for customers, i was tired of uploading the databases by hand, so i wrote a script to help me with that:
It's quite basic but seems to do the trick. Feel free to use, comment etc
Upgrade Services Leader
Odoo (Formerly OpenERP)
Chaussée de Namur, 40