mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] call super for unlink
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user