Community mailing list archives

community@mail.odoo.com

Re: Script to upload a DB to odoo migration service

by
Olivier Laurent (olt)
- 06/07/2016 02:09:30
Hello Jos,

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:
  https://www.odoo.com/documentation/9.0/reference/upgrade_api.html
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

Thanks.

Regards,

On 06/06/16 20:42, Jos De Graeve wrote:
Hi,

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

Regards,

Jos De Graeve - Apertoso business ICT


Guido Gezellelaan 16 - B-9800 Deinze - Belgium
 
Direct: +32 9 381 64 51
General:+32 9 381 64 50
Mobile: +32 475 54 68 80
mail/im/skype: Jos.DeGraeve@apertoso.be - apertoso

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe



--
Olivier Laurent
Upgrade Services Leader
Odoo (Formerly OpenERP)
Chaussée de Namur, 40
B-1367 Gérompont
Tel: +32.81.81.37.00
Web: http://www.odoo.com