Set message translatable

This commit is contained in:
Yannick Vaucher
2015-07-14 12:35:20 +02:00
parent 08552ba799
commit f4ce091bbb

View File

@@ -38,7 +38,7 @@ class AccountBankStatement(models.Model):
msg = '' msg = ''
for line in self.line_ids: for line in self.line_ids:
if not line.amount: if not line.amount:
msg += 'Amount on line %s is not set. \n' % (line.name) msg += _('Amount on line %s is not set. \n') % (line.name)
if msg: if msg:
raise exceptions.Warning( raise exceptions.Warning(
_("Error on bank statement: \n %s") % msg) _("Error on bank statement: \n %s") % msg)