From 5235c605cd01ae70bc5610f265f15911e2df67fe Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Fri, 28 Jan 2011 11:15:49 +0530 Subject: [PATCH] [FIX] Account: Residual Value miscalculated lp bug: https://launchpad.net/bugs/708405 fixed bzr revid: mra@mra-laptop-20110128054549-srjxoazwo73cmv92 --- addons/account/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 48a315ecd98..077094aa2dc 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -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