[FIX]account_voucher : improved code
authorMayur Maheshwari (OpenERP) <mma@tinyerp.com>
Mon, 5 Nov 2012 08:40:37 +0000 (14:10 +0530)
committerMayur Maheshwari (OpenERP) <mma@tinyerp.com>
Mon, 5 Nov 2012 08:40:37 +0000 (14:10 +0530)
bzr revid: mma@tinyerp.com-20121105084037-iuqq0l9lln1o9e4j

addons/account_voucher/account_voucher.py

index cb4d702..2952809 100644 (file)
@@ -384,7 +384,7 @@ class account_voucher(osv.osv):
                 for line in voucher.line_ids:
                     for tax_line in tax_pool.compute_all(cr, uid, tax, line.amount, 1).get('taxes', []):
                         total_tax += tax_line.get('amount', 0.0)
-                    total += total_tax
+                total += total_tax
             else:
                 for line in voucher.line_ids:
                     line_total = 0.0