From 9351ca023f67aa47ff438ee57efb4b6dd74aeb38 Mon Sep 17 00:00:00 2001 From: "ksa (OpenERP)" Date: Thu, 7 Jun 2012 10:26:03 +0530 Subject: [PATCH] [FIX]:invoice residual amount is get negatvie when use different currency and payment through bank statement bzr revid: ksa@tinyerp.com-20120607045603-npveflilbe76auj9 --- addons/account_voucher/wizard/account_statement_from_invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account_voucher/wizard/account_statement_from_invoice.py b/addons/account_voucher/wizard/account_statement_from_invoice.py index 1b921e0ccf4..c6226667b37 100644 --- a/addons/account_voucher/wizard/account_statement_from_invoice.py +++ b/addons/account_voucher/wizard/account_statement_from_invoice.py @@ -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)