From d4ff1f58bea753671b299017e5489a9b9d3a8c71 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Mon, 23 Aug 2010 18:35:43 +0530 Subject: [PATCH] [FIX]: fix a small problem bzr revid: mga@tinyerp.com-20100823130543-bu5wqo0fsdgya4rm --- addons/account_voucher/voucher.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/addons/account_voucher/voucher.py b/addons/account_voucher/voucher.py index 7835a4a4135..e72053e37d4 100644 --- a/addons/account_voucher/voucher.py +++ b/addons/account_voucher/voucher.py @@ -607,10 +607,7 @@ class account_voucher(osv.osv): 'currency_id':inv.currency_id.id }) - total_amount = 0.0 - if inv.tax_amount: - total_amount = inv.amount + inv.tax_amount - + total_amount = inv.amount if inv.type in ('sale', 'receipt'): move_line.update({ 'debit':total_amount @@ -621,6 +618,7 @@ class account_voucher(osv.osv): }) line_ids = [] + master_line = move_line_pool.create(cr, uid, move_line) line_ids += [master_line] rec_list_ids = []