Skip to content
Snippets Groups Projects
Commit 80b900ee authored by Lucas Perais (lpe)'s avatar Lucas Perais (lpe)
Browse files

[FIX] account: reconciliation matching rule div by zero


Do a MISC operation representing a payment
revert it

Do a statement line for that amount

Click on "reconcile" on the bank journal

Before this commit there was a Division By Zero traceback
This was because the bank account line had a zero amount_residual
due to its reversion
while the statement line was negative.

After this commit, for liquidity lines, we take the total amount instead of the residual
Because a reverted payment line can always be associated with a statement

OPW 1947362
courtesy of @smetl (las@odoo.com) for the fix

closes odoo/odoo#32105

Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
parent b8950ab4
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment