[FIX] Passed bank statement's currency in payment_rate_currency_id of the account.voucher when importing payment lines
This commit is contained in:
parent
a091de8d8d
commit
056ab55b6b
|
@ -92,6 +92,7 @@ class account_payment_populate_statement(osv.osv_memory):
|
||||||
'date': line.date or time.strftime('%Y-%m-%d'),
|
'date': line.date or time.strftime('%Y-%m-%d'),
|
||||||
'amount': abs(amount),
|
'amount': abs(amount),
|
||||||
'period_id': statement.period_id.id,
|
'period_id': statement.period_id.id,
|
||||||
|
'payment_rate_currency_id': statement.currency.id,
|
||||||
}
|
}
|
||||||
voucher_id = voucher_obj.create(cr, uid, voucher_res, context=context)
|
voucher_id = voucher_obj.create(cr, uid, voucher_res, context=context)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue