Daily updates from Odoo
Friday, August 15, 2025
1 change · master
Resolved issues and error corrections
Tax reports for France and Belgium now compare totals in a way that accounts for normal rounding differences. This prevents false mismatches when displayed amounts are effectively the same, improving reliability for users reviewing reports.
Original PR description
Currently, the code was checking for a strict equality between two sums. However, it may happen that there are many decimals that aren't displayed on the UI, hence the strict equality check fails. For instance `30201.63 != 30201.629999999997`. Instead, we now use the `float_compare` which takes care of rounding issues. opw-5000147 Forward-Port-Of: odoo/enterprise#92405 Forward-Port-Of: odoo/enterprise#92356