[FIX] Account_voucher : minor fix
bzr revid: jvo@tinyerp.com-20101015214718-9oetl1dh9y5qjjo7
This commit is contained in:
parent
475a9c625d
commit
12e5a78d6e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue