Browse Source

Fix flake8 and pylint warnings

pull/47/head
astirpe 9 years ago
parent
commit
ec8ccbcf50
  1. 4
      bi_view_editor/models/bve_view.py

4
bi_view_editor/models/bve_view.py

@ -7,7 +7,7 @@ import json
from openerp import tools
from openerp import SUPERUSER_ID
from openerp import models, fields, api
from openerp.exceptions import Warning
from openerp.exceptions import Warning as UserError
from openerp.tools.translate import _
@ -66,7 +66,7 @@ class BveView(models.Model):
def unlink(self):
for view in self:
if view.state == 'created':
raise Warning(
raise UserError(
_('Error'),
_('You cannot delete a created view! '
'Reset the view to draft first.'))

Loading…
Cancel
Save