From 7e9f2428efeae2d1e49acc037563aa451fb9f590 Mon Sep 17 00:00:00 2001 From: "Amit Bhavsar (Open ERP)" Date: Thu, 10 Jan 2013 14:38:19 +0100 Subject: [PATCH] [FIX] Import move lines without an invoice backport of lp:~openerp-dev/openobject-addons/trunk-bug-986088-amb --- account_banking/wizard/account_payment_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_banking/wizard/account_payment_order.py b/account_banking/wizard/account_payment_order.py index 686c8bdfe..f85b556ba 100644 --- a/account_banking/wizard/account_payment_order.py +++ b/account_banking/wizard/account_payment_order.py @@ -112,7 +112,7 @@ class payment_order_create(osv.osv_memory): 'state': state, ### end account banking 'date': date_to_pay, - 'currency': line.invoice and line.invoice.currency_id.id or False, + 'currency': line.invoice and line.invoice.currency_id.id or line.journal_id.currency.id or line.journal_id.company_id.currency_id.id, }, context=context) return {'type': 'ir.actions.act_window_close'}