[FIX] Account_voucher : minor fix

bzr revid: jvo@tinyerp.com-20101015214718-9oetl1dh9y5qjjo7
This commit is contained in:
Jay (OpenERP) 2010-10-16 03:17:18 +05:30
parent 475a9c625d
commit 12e5a78d6e
1 changed files with 1 additions and 2 deletions

View File

@ -257,10 +257,9 @@ class account_voucher(osv.osv):
total = 0.0
total_tax = 0.0
for line in line_ids:
line_amount = 0.0
line_amount = line[2].get('amount')
line_amount = line[2] and line[2].get('amount',0.0) or 0.0
voucher_line_ids += [line[1]]
voucher_total += line_amount