[FIX]account_patment : Fixes the IntegrityError Problem
lp bug: https://launchpad.net/bugs/986088 fixed bzr revid: amb@tinyerp.com-20120424054359-l0pa8rij04x63k42
This commit is contained in:
@@ -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:
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
Reference in New Issue
Block a user