Daily updates from Odoo
Wednesday, April 10, 2024
2 changes · master
Enhancements to existing features
Financial report formulas will no longer silently turn division-by-zero results into zero by default, reducing the risk of misleading figures. Existing reports that intentionally used the old behavior were updated to preserve their results, while future report formulas must explicitly choose this fallback when needed.
Original PR description
In an aggregation, when a 0-division happens in a formula, the result of the formula will be set to 0. This way of handling 0-division is counter-intuitive and could potentially create errors in the reports. This commit takes the default 0-division safety off, which forces the dev to think about- and fix these issues. To enable the safety, a developer can enter 'ignore_zero_division' as a subformula on an aggregation. The 'ignore_zero_division' subformula was added to existing reports and testcases to stay consistent with earlier versions. task: 3774403
Aging reports can now use user-defined time intervals instead of being limited to fixed 30-day periods. This gives businesses more flexibility in reviewing overdue receivables and payables, while preventing invalid interval values below one.
Original PR description
This improvement expands the functionality of the ageing reports by introducing a customizable aging report based on aging intervals. Previously, the aging intervals were fixed at 30 days, but with this PR, users can now input intervals greater than one, Also for intervals less than one an error is thrown. Task-3669642