[FIX] account: import invoice in multicurrency

Missing values for fields amount_curreny and currency_id when importing
an invoice from a bank statement.
Fixes #3830, opw 618764
This commit is contained in:
rmu-odoo 2015-01-16 18:28:47 +05:30 committed by Martin Trigaux
parent 138cc11a5f
commit 8b95a8424b
1 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,8 @@ class account_statement_from_invoice_lines(osv.osv_memory):
'statement_id': statement_id,
'ref': line.ref,
'date': statement.date,
'amount_currency': line.amount_currency,
'currency_id': line.currency_id.id,
}, context=context)
return {'type': 'ir.actions.act_window_close'}