Skip to content
Browse files

[FIX] Account:rounding poorly applied

Rounding each element of the sum decrease the
precision and prevent to reconcile large recordset.

closes #33100

Signed-off-by: Laurent Smet <>
  • Loading branch information...
ndeodoo committed May 2, 2019
1 parent 5d6656d commit 0164c9dfcb8f94dd09ffc5a0ce056e4e23308abe
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/account/models/
@@ -322,7 +322,7 @@ def _amount_residual(self):
date = if partial_line.debit_move_id == line else
rate = line.currency_id.with_context(date=date).rate
amount_residual_currency += sign_partial_line * line.currency_id.round(partial_line.amount * rate)
amount_residual_currency += sign_partial_line * partial_line.amount * rate

#computing the `reconciled` field. As we book exchange rate difference on each partial matching,
#we can only check the amount in company currency

0 comments on commit 0164c9d

Please sign in to comment.
You can’t perform that action at this time.