From 8b95a8424bdbef91dc3d5100662ad4c398f7001b Mon Sep 17 00:00:00 2001 From: rmu-odoo Date: Fri, 16 Jan 2015 18:28:47 +0530 Subject: [PATCH] [FIX] account: import invoice in multicurrency Missing values for fields amount_curreny and currency_id when importing an invoice from a bank statement. Fixes #3830, opw 618764 --- addons/account/wizard/account_statement_from_invoice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/wizard/account_statement_from_invoice.py b/addons/account/wizard/account_statement_from_invoice.py index de2d44499fd..fd1b5790bf8 100644 --- a/addons/account/wizard/account_statement_from_invoice.py +++ b/addons/account/wizard/account_statement_from_invoice.py @@ -79,6 +79,8 @@ class account_statement_from_invoice_lines(osv.osv_memory): 'statement_id': statement_id, 'ref': line.ref, 'date': statement.date, + 'amount_currency': line.amount_currency, + 'currency_id': line.currency_id.id, }, context=context) return {'type': 'ir.actions.act_window_close'}