[FIX] call super for unlink

pull/58/merge
Sylvain LE GAL 2018-02-12 16:19:34 +01:00
parent 9b05758529
commit f929bc7dfb
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class BiSQLView(models.Model):
('state', 'not in', ('draft', 'sql_valid'))])
if non_draft_views:
raise UserError(_("You can only unlink draft views"))
return self.unlink()
return super(BiSQLView, self).unlink()
@api.multi
def copy(self, default=None):