Community mailing list archives

community@mail.odoo.com

Re: Relations dropped or refactored from V7 to V8

by
h.tamo
- 06/19/2015 06:41:04
Hi

Thanks for your responses. I'll do as you said.

Thanks.

2015-06-18 20:50 GMT+01:00 Sylvain LE GAL <sylvain.legal@grap.coop>:
Hi Harold,

So basically, to work on openupgrade and realize the coverage of a new module, you have to realize a New Pull Request against OpenUpgrade project, including generally 3 files in the migration folder of your module:
- openupgrade_analysis_work.txt, (that is a copy of openupgrade_analysis.txt file WITH your comments and analyse.)

- a pre-migration python script; (In the pre migration script, you only have access to the database, not the ORM, and regular update did not worked already)

- a post-migration python script; (In the post migration script, you have full access to the ORM and this script is executed after regular update)

1/ see for exemple an easy sample with migration of analytic module, and check after more tecnical upgrade like product module, or stock module if you wanna have a nice evening;

2/ You can read some doc here : https://doc.therp.nl/openupgrade/

3/ you can use any functions available in the openupgrade library : https://github.com/OCA/openupgradelib ;

I stay tuned if you have any questions.

Kind regards.


Sylvain LE GAL
Service informatique
GRAP - Groupement Régional Alimentaire de Proximité

3 Grande rue des Feuillants, 69001 Lyon
Bureau :
(+33) 09.72.32.33.17
Astreinte :
(+33) 06.81.85.61.43

GRAP sur le Web : Site Web | Facebook | Twitter
GRAP - service Informatique sur le Web : Twitter


2015-06-18 20:56 GMT+02:00 Harold Tamo <h.tamo@cloudfacile.com>:
Hello,

  • Empty : No information available : Please see the ‘openupgrade_analysis.txt’ file of the module and share your analyse;
I ran into the same error reported here (https://github.com/OpenUpgrade/OpenUpgrade/issues/214) by running a database migration

I also see that the module survey is not covered yet by openupgrade.

My questions is :

-How can i share my "openupgrade_analysis.txt" file (in the survey module)
-How can i write migration script for this module (survey)

Thanks.

2015-06-09 0:35 GMT+01:00 Stefan <stefan@therp.nl>:
On 08-06-15 16:13, Harold Tamo wrote:
> I already take a look on that list, thanks.The problem is i have some
>  custom modules and i don't know how to includes them in migration
> with openupgrade.


You can add the repositories containing the 8.0 version of these modules
through the --add parameter of the script
https://github.com/OpenUpgrade/OpenUpgrade/blob/8.0/scripts/migrate.py#L160.

Regards,
Stefan.


-- 
Therp - Maatwerk in open ontwikkeling

Stefan Rijnhart - Ontwerp en implementatie

mail: stefan@therp.nl
tel: +31 (0) 614478606
web: http://therp.nl

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




--

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


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




--