web mailing list archives

web@odoo-community.org

Avatar

Re: [OCA/web] Rename web_pwa -> pwa (#1612)

by Lorenzo Battistini <notifications@github.com> - 05/06/2020 08:59:06

I can add a migration script gladly.

What's the best way in this case?

  1. Add migrations/12.0.1.0.0/pre-migration.py
  2. Add the script to __init__.py file
  3. Add a descriptive step to INSTALL.rst, in case web_pwa was installed:
>>> from openupgradelib import openupgrade

>>> openupgrade.update_module_names(env.cr, [('web_pwa', 'web_pwa_oca')], merge_modules=False)

>>> env.cr.commit()

Thanks


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.