[MERGE] Account_voucher: Not able to validate sales receipt/ supplier voucher

bzr revid: mra@mra-laptop-20101217055554-puui89273i321y2q
This commit is contained in:
Mustufa Rangwala
2010-12-17 11:25:54 +05:30
+1 -1
View File
@@ -709,7 +709,7 @@ class account_voucher(osv.osv):
for line in inv.line_ids:
if not line.amount:
continue
amount = currency_pool.compute(cr, uid, current_currency, company_currency, line.amount)
amount = currency_pool.compute(cr, uid, current_currency, company_currency, line.untax_amount or line.amount)
move_line = {
'journal_id': inv.journal_id.id,
'period_id': inv.period_id.id,