[FIX]:invoice residual amount is get negatvie when use different currency and payment through bank statement

bzr revid: ksa@tinyerp.com-20120607045603-npveflilbe76auj9
This commit is contained in:
ksa (OpenERP) 2012-06-07 10:26:03 +05:30
parent ef7c1ab249
commit 9351ca023f
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ class account_statement_from_invoice_lines(osv.osv_memory):
'currency_id':statement.currency.id,
'date':line.date,
'amount':abs(amount),
'payment_rate': result['value']['payment_rate'],
'period_id':statement.period_id.id}
voucher_id = voucher_obj.create(cr, uid, voucher_res, context=context)