From 056ab55b6b4ccf7cd845bd666e76b4ec6e853582 Mon Sep 17 00:00:00 2001 From: dhr-odoo Date: Mon, 6 Oct 2014 18:53:15 +0530 Subject: [PATCH] [FIX] Passed bank statement's currency in payment_rate_currency_id of the account.voucher when importing payment lines --- .../account_payment/wizard/account_payment_populate_statement.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account_payment/wizard/account_payment_populate_statement.py b/addons/account_payment/wizard/account_payment_populate_statement.py index edd47065e3a..03a67047858 100644 --- a/addons/account_payment/wizard/account_payment_populate_statement.py +++ b/addons/account_payment/wizard/account_payment_populate_statement.py @@ -92,6 +92,7 @@ class account_payment_populate_statement(osv.osv_memory): 'date': line.date or time.strftime('%Y-%m-%d'), 'amount': abs(amount), 'period_id': statement.period_id.id, + 'payment_rate_currency_id': statement.currency.id, } voucher_id = voucher_obj.create(cr, uid, voucher_res, context=context)