Skip to content

Commit

Permalink
[FIX] cr -> env
Browse files Browse the repository at this point in the history
  • Loading branch information
psugne committed Oct 22, 2024
1 parent 7682f55 commit c6f3131
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions product_multi_image/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
_logger.info("Cannot import base_multi_image hooks")


def post_init_hook(cr, registry):
post_init_hook_for_submodules(cr, registry, "product.template", "image_1920")
post_init_hook_for_submodules(cr, registry, "product.product", "image_variant_1920")
def post_init_hook(env, registry):
post_init_hook_for_submodules(env, registry, "product.template", "image_1920")
post_init_hook_for_submodules(env, registry, "product.product", "image_variant_1920")


def uninstall_hook(cr, registry):
def uninstall_hook(env, registry):
"""Remove multi images for models that no longer use them."""
uninstall_hook_for_submodules(cr, registry, "product.template")
uninstall_hook_for_submodules(cr, registry, "product.product")
uninstall_hook_for_submodules(env, registry, "product.template")
uninstall_hook_for_submodules(env, registry, "product.product")

0 comments on commit c6f3131

Please sign in to comment.