diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index e9e2f1611c8..2eed2a8e8d6 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -2002,8 +2002,8 @@ class AccountMove(models.Model): # No update needed if existing_cash_rounding_line \ - and existing_cash_rounding_line.balance == diff_balance \ - and existing_cash_rounding_line.amount_currency == diff_amount_currency: + and float_compare(existing_cash_rounding_line.balance, diff_balance, precision_rounding=self.currency_id.rounding) == 0 \ + and float_compare(existing_cash_rounding_line.amount_currency, diff_amount_currency, precision_rounding=self.currency_id.rounding) == 0: return _apply_cash_rounding(self, diff_balance, diff_amount_currency, existing_cash_rounding_line)