[FIX] Account : Correction on the calculation of residual

lp bug: https://launchpad.net/bugs/708405 fixed

bzr revid: jvo@tinyerp.com-20110128063947-tjf1tufdfzcr8usr
This commit is contained in:
Jay Vora (OpenERP) 2011-01-28 12:09:47 +05:30
parent ecb6b6f527
commit 27847a9008
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class account_invoice(osv.osv):
if invoice.move_id:
for m in invoice.move_id.line_id:
if m.account_id.type in ('receivable','payable'):
result[invoice.id] = m.amount_residual_currency
result[invoice.id] += m.amount_residual_currency
return result
# Give Journal Items related to the payment reconciled to this invoice