[FIX]account_voucher : improved code
bzr revid: mma@tinyerp.com-20121105084037-iuqq0l9lln1o9e4j
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user