Browse Source

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

* [FIX] base_multi_image: Use env in uninstall_hook
12.0-mig-module_prototyper_last
Dave Lasley 8 years ago
committed by Vladislav Shepilov
parent
commit
df614cf4df
  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