Contributors mailing list archives

contributors@odoo-community.org

Avatar

Re: How to test v14 upgrade scripts

by
Sergio Zanchetta
- 23/04/2021 13:26:33
Il giorno ven 23 apr 2021 alle ore 15:20 Sergio Zanchetta
<primes2h@gmail.com> ha scritto:

>

> Il giorno ven 29 gen 2021 alle ore 11:27 Holger Brunn

> <mail@hunki-enterprises.com> ha scritto:

> >


> The only way (we have found so far) to trigger pre-migrate script is this:

>

> 1) old_name module installation

> 2) add/change some data

> 3) checkout to commit containing new_name module, migration script and

> version bumped

> 4) execute odoo shell

> >>> from openupgradelib import openupgrade

> >>> openupgrade.update_module_names(env.cr, [('l10n_it_codici_carica', 'l10n_it_appointment_code'),], merge_modules=False,)

Sorry, this one is obviously:

>>> openupgrade.update_module_names(env.cr, [('old_name_module', 'new_name_module'),], merge_modules=False,)

Reference