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 = ''
for line in self.line_ids:
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:
raise exceptions.Warning(
_("Error on bank statement: \n %s") % msg)