Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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,
)
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)
def rename_module(cr):
openupgrade.update_module_names(
cr,
[("connector_locomotivecms", "shopinvader_locomotive")],
merge_modules=True,
)