[FIX]account_voucher : improved code

bzr revid: mma@tinyerp.com-20121105084037-iuqq0l9lln1o9e4j
This commit is contained in:
Mayur Maheshwari (OpenERP)
2012-11-05 14:10:37 +05:30
parent fd8f46b39a
commit 973d784810
+1 -1
View 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