[IMP] exception message

bzr revid: abo@openerp.com-20120911133711-jjav8mhrvqi8p4hs
This commit is contained in:
Antonin Bourguignon 2012-09-11 15:37:11 +02:00
parent 1a2d054b84
commit d25057c494
1 changed files with 1 additions and 1 deletions

View File

@ -1048,7 +1048,7 @@ class account_voucher(osv.osv):
# currency rate difference
if line.amount == line.amount_unreconciled:
if not line.move_line_id.amount_residual:
raise osv.except_osv(_('Wrong bank statement line'),_("You must have delete the bank statement line manualy to which the payment was reconcile. Please check the payment of the partner %s by the amount of %s !")%(line.voucher_id.partner_id.name, line.voucher_id.amount))
raise osv.except_osv(_('Wrong bank statement line'),_("You have to delete the bank statement line which the payment was reconciled to manually. Please check the payment of the partner %s by the amount of %s.")%(line.voucher_id.partner_id.name, line.voucher_id.amount))
currency_rate_difference = line.move_line_id.amount_residual - amount
else:
currency_rate_difference = 0.0