[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
This commit is contained in:
Alexis de Lattre
2012-07-03 11:17:40 +05:30
committed by Rifakat
parent 4216edfd5f
commit 899344b3f8
+2
View File
@@ -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 = []