Browse Source

[FIX] call super for unlink

pull/58/merge
Sylvain LE GAL 7 years ago
parent
commit
f929bc7dfb
  1. 2
      bi_sql_editor/models/bi_sql_view.py

2
bi_sql_editor/models/bi_sql_view.py

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

Loading…
Cancel
Save