[UPT]add test. FIx unlink

This commit is contained in:
aheficent
2017-07-17 17:14:49 +02:00
committed by Nicolas Mac Rouillon
parent 669168dd83
commit eb91e2d797
4 changed files with 63 additions and 4 deletions

View File

@@ -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):