Browse Source

[FIX] base_multi_image: Use env in uninstall_hook (#677)

* [FIX] base_multi_image: Use env in uninstall_hook
pull/702/head
Dave Lasley 8 years ago
committed by Stefan Rijnhart (Opener)
parent
commit
0addd5540b
  1. 4
      base_multi_image/hooks.py

4
base_multi_image/hooks.py

@ -77,8 +77,8 @@ def uninstall_hook_for_submodules(cr, registry, model):
model will be deleted
"""
Image = registry["base_multi_image.image"]
ids = Image.search(cr, SUPERUSER_ID, [("owner_model", "=", model)])
Image.unlink(cr, SUPERUSER_ID, ids)
images = Image.search([("owner_model", "=", model)])
images.unlink()
def table_has_column(cr, table, field):

Loading…
Cancel
Save