From 05f53b95f109f912f65d03c41b2bae9573540e46 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Mon, 4 Oct 2010 13:01:13 +0530 Subject: [PATCH] [FIX] Account: Residual amount is not update updated properly with voucher payment lp bug: https://launchpad.net/bugs/651628 fixed bzr revid: mra@mra-laptop-20101004073113-x70oe0fsnlt3dqjy --- 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 1aa4e30d95d..71d37cd25ad 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -148,7 +148,7 @@ class account_invoice(osv.osv): res[id] = [] if not invoice.move_id: continue - data_lines = invoice.move_id.line_id + data_lines = [x for x in invoice.move_id.line_id if x.account_id.id == invoice.account_id.id] partial_ids = [] for line in data_lines: ids_line = []