[MERGE] import payment on non invoices
bzr revid: fp@tinyerp.com-20120930112405-a9yob1a24ek5jojl
This commit is contained in:
commit
8d74f18057
|
@ -88,7 +88,7 @@ class payment_order_create(osv.osv_memory):
|
||||||
'partner_id': line.partner_id and line.partner_id.id or False,
|
'partner_id': line.partner_id and line.partner_id.id or False,
|
||||||
'communication': line.ref or '/',
|
'communication': line.ref or '/',
|
||||||
'date': date_to_pay,
|
'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)
|
}, context=context)
|
||||||
return {'type': 'ir.actions.act_window_close'}
|
return {'type': 'ir.actions.act_window_close'}
|
||||||
|
|
||||||
|
@ -120,4 +120,4 @@ class payment_order_create(osv.osv_memory):
|
||||||
|
|
||||||
payment_order_create()
|
payment_order_create()
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
Loading…
Reference in New Issue