[FIX] resubmitt account_patment : Fixes the IntegrityError Problem

lp bug: https://launchpad.net/bugs/986088 fixed

bzr revid: amb@tinyerp.com-20120424132732-6m8txac0d7yvn1f0
This commit is contained in:
Amit Bhavsar (Open ERP) 2012-04-24 18:57:32 +05:30
parent ca3de27dde
commit 9e68ccd264
1 changed files with 1 additions and 1 deletions

View File

@ -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'}