Skip to content

Commit 3afbb19

Browse files
committed
[FIX] base_multi_image: Uninstall hook
* Fix registry usage in uninstall hook
1 parent 0185963 commit 3afbb19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base_multi_image/hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def uninstall_hook_for_submodules(cr, registry, model):
7777
model will be deleted
7878
"""
7979
Image = registry["base_multi_image.image"]
80-
images = Image.search([("owner_model", "=", model)])
80+
images = Image.search(Image, [("owner_model", "=", model)])
8181
images.unlink()
8282

8383

0 commit comments

Comments
 (0)