How to use the openupgradelib.openupgrade.update_module_names function in openupgradelib

To help you get started, we’ve selected a few openupgradelib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shopinvader / odoo-shopinvader / shopinvader_product_stock / hooks.py View on Github external
def pre_init_hook(cr):
    """
    Rename the module 'shopinvader_stock' into 'shopinvader_product_stock'.
    :param cr: database cursor
    :return:
    """
    openupgrade.update_module_names(
        cr,
        [("shopinvader_stock", "shopinvader_product_stock")],
        merge_modules=True,
    )
github shopinvader / odoo-shopinvader / shopinvader_algolia_product_stock / hooks.py View on Github external
def pre_init_hook(cr):
    """
    Rename the module 'shopinvader_algolia_stock' into
    'shopinvader_algolia_product_stock'.
    :param cr: database cursor
    :return:
    """
    openupgrade.update_module_names(
        cr, [('shopinvader_algolia_stock',
              'shopinvader_algolia_product_stock')],
        merge_modules=True)
github shopinvader / odoo-shopinvader / shopinvader_locomotive / hooks.py View on Github external
def rename_module(cr):
    openupgrade.update_module_names(
        cr,
        [("connector_locomotivecms", "shopinvader_locomotive")],
        merge_modules=True,
    )