From 899344b3f856e90776b40f56d43fc78fc6021d71 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 3 Jul 2012 11:17:40 +0530 Subject: [PATCH] [FIX] account: corercted Quantity and Amount Currency of a move while related journal is enable Group Invoice Lines lp bug: https://launchpad.net/bugs/1019324 fixed bzr revid: rha@tinyerp.com-20120703054740-d3ana850vomt083a --- addons/account/account_invoice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index b7def8e..d61cd25 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -789,6 +789,8 @@ class account_invoice(osv.osv): line2[tmp]['credit'] = (am < 0) and -am or 0.0 line2[tmp]['tax_amount'] += l['tax_amount'] line2[tmp]['analytic_lines'] += l['analytic_lines'] + line2[tmp]['amount_currency'] += l['amount_currency'] + line2[tmp]['quantity'] += l['quantity'] else: line2[tmp] = l line = [] -- 1.7.10.4