mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] Import move lines without an invoice
backport of lp:~openerp-dev/openobject-addons/trunk-bug-986088-amb
This commit is contained in:
committed by
Stefan Rijnhart
parent
ea1f183085
commit
7e9f2428ef
@@ -112,7 +112,7 @@ class payment_order_create(osv.osv_memory):
|
||||
'state': state,
|
||||
### end account banking
|
||||
'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)
|
||||
return {'type': 'ir.actions.act_window_close'}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user