Monday, October 30, 2023
1 change · 17.0
Resolved issues and error corrections
This update fixes a critical issue in account reports where financial summaries would fail to load when child line items lacked codes. The fix ensures reports can be opened and properly audited, and includes new tests to prevent this problem from recurring in the future.
Original PR description
[FIX] account_reports: properly handle lines without codes in sum_children aggregations If some child lines did not have any code, sum_children did not work well, and the report could not be opened. --------------------------- [IMP] account_reports: add a test checking a sum_children aggregation can properly be audited This case was untested and broken (it entered an infinite loop when trying to expand the aggregation and loaded forever). The community counterpart of this PR fixes the bug ; this commit adds the proper test to ensure this does not happen again. Forward-Port-Of: odoo/enterprise#49365 Forward-Port-Of: odoo/enterprise#49133