mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[UPT]add test. FIx unlink
This commit is contained in:
committed by
Nicolas Mac Rouillon
parent
669168dd83
commit
eb91e2d797
@@ -148,7 +148,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