[FIX] replace old naming of exception + simplify xpath expression to make it more portable

This commit is contained in:
Florian da Costa
2014-03-13 16:44:34 +01:00
parent 975df8c3e2
commit a1d2a4806b
2 changed files with 3 additions and 3 deletions

View File

@@ -394,7 +394,7 @@ class AccountStatement(orm.Model):
], context=context)
if line_without_account:
stat = self.browse(cr, uid, stat_id, context=context)
raise osv.except_osv(_('User error'),
raise orm.except_orm(_('User error'),
_('You should fill all account on the line of the'
' statement %s')%stat.name)
return super(AccountStatement, self).button_confirm_bank(cr, uid, ids, context=context)