Skip to Content

Contributors

Re: How to test v14 upgrade scripts

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,)

by Sergio Zanchetta - 10:14 - 28 Apr 2021

Reference

  • How to test v14 upgrade scripts
    Hi all,

    we are porting to 14.0 the OCA/l10n-italy modules and developing some upgrade scripts, like this

    Our doubt: is this testable?
    In general, is it possible to test v14 upgrade scripts before OpenUpgrade is available for v14?

    Thanks!

    --

    by Lorenzo Battistini. - 10:06 - 29 Jan 2021