From ca3de27dde7fe787b21877fcaff6167c156610f8 Mon Sep 17 00:00:00 2001 From: "Amit Bhavsar (Open ERP)" Date: Tue, 24 Apr 2012 11:13:59 +0530 Subject: [PATCH] [FIX]account_patment : Fixes the IntegrityError Problem lp bug: https://launchpad.net/bugs/986088 fixed bzr revid: amb@tinyerp.com-20120424054359-l0pa8rij04x63k42 --- addons/account_payment/wizard/account_payment_order.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account_payment/wizard/account_payment_order.py b/addons/account_payment/wizard/account_payment_order.py index 613b049a412..d62edc4e843 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 False, + 'currency': line.invoice and line.invoice.currency_id.id or line.company_id.currency_id.id, }, context=context) return {'type': 'ir.actions.act_window_close'} @@ -119,4 +119,4 @@ class payment_order_create(osv.osv_memory): payment_order_create() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: