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