[FIX] account: corercted Quantity and Amount Currency of a move while related journal...
authorAlexis de Lattre <alexis.delattre@akretion.com>
Tue, 3 Jul 2012 05:47:40 +0000 (11:17 +0530)
committerRifakat <rha@tinyerp.com>
Tue, 3 Jul 2012 05:47:40 +0000 (11:17 +0530)
lp bug: https://launchpad.net/bugs/1019324 fixed

bzr revid: rha@tinyerp.com-20120703054740-d3ana850vomt083a

addons/account/account_invoice.py

index b7def8e..d61cd25 100644 (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 = []