Skip to content
Snippets Groups Projects
Commit a3d91cc8 authored by Adrian Torres's avatar Adrian Torres
Browse files

[FIX] base: return super().unlink() for ir.ui.view.unlink()


Commit bca2926b introduced a fix for
ir.ui.view unlinks during uninstall but forgot to return the result of
the super() call to unlink which broke behaviour downstream.

This commit restores the proper behavior of returning the result of the
call to super.

Closes #52364

closes odoo/odoo#52401

X-original-commit: c526410a
Signed-off-by: default avatarAdrian Torres (adt) <adt@odoo.com>
parent 711d1a81
No related branches found
No related tags found
No related merge requests found
......@@ -509,7 +509,7 @@ actual arch.
# if in uninstall mode and has children views, emulate an ondelete cascade
if self.env.context.get('_force_unlink', False) and self.inherit_children_ids:
self.inherit_children_ids.unlink()
super(View, self).unlink()
return super(View, self).unlink()
@api.returns('self', lambda value: value.id)
def copy(self, default=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment