Skip to content
Snippets Groups Projects
Commit 9989a9c3 authored by Laurent Smet's avatar Laurent Smet Committed by Goffin Simon
Browse files

[FIX] account: Fix reconciliation foreign currency on account


Suppose you make a reconciliation on an account having a foreign currency being
the same as the company one.
Suppose also you are making a reconciliation of three lines without currency_id set on this account:
- A with debit = 11
- B with credit = 10
- C with credit = 1

Before this commit, the reconciliation was wrong because all computation are made using the foreign
currency due to the account's configuration. As A, B & C have their amount_currency set to 0,
an account.full.reconcile is well created but only one account.partial.reconcile is created instead of
2 leading to an inconsistent state.

opw:1984684

closes odoo/odoo#33445

Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>


Co-authored-by: default avatarGoffin Simon <simon.goffin@outlook.com>
parent 839f62c3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment