[IMP] exception message
bzr revid: abo@openerp.com-20120911133711-jjav8mhrvqi8p4hs
This commit is contained in:
parent
1a2d054b84
commit
d25057c494
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue