From 9e68ccd264b1ac04606f0abe0e58ffb04fd6c189 Mon Sep 17 00:00:00 2001 From: "Amit Bhavsar (Open ERP)" Date: Tue, 24 Apr 2012 18:57:32 +0530 Subject: [PATCH] [FIX] resubmitt account_patment : Fixes the IntegrityError Problem lp bug: https://launchpad.net/bugs/986088 fixed bzr revid: amb@tinyerp.com-20120424132732-6m8txac0d7yvn1f0 --- addons/account_payment/wizard/account_payment_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_payment/wizard/account_payment_order.py b/addons/account_payment/wizard/account_payment_order.py index d62edc4e843..f2b553d3d26 100644 --- a/addons/account_payment/wizard/account_payment_order.py +++ b/addons/account_payment/wizard/account_payment_order.py @@ -87,7 +87,7 @@ class payment_order_create(osv.osv_memory): 'partner_id': line.partner_id and line.partner_id.id or False, 'communication': line.ref or '/', 'date': date_to_pay, - 'currency': line.invoice and line.invoice.currency_id.id or line.company_id.currency_id.id, + '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'}