Tuesday, March 5, 2024
2 changes · 17.0
Resolved issues and error corrections
This fix resolves an infinite loop issue that occurred in the Trial Balance report when account groups had circular parent relationships. The system now includes proper validation to prevent recursive parent-child relationships in account groups, ensuring the Trial Balance report runs smoothly without freezing.
Original PR description
# Issue: Infinite loop in Trial Balance. # Analyze: The infinite loop is due to account_reports.models.account_report.AccountReport.get_account_codes `while group:` loop if a recursion exist in group.parent_id there is an infinite loop. # Fix: Ensure the no recursion constrains on parent_id in account_reports. # Related tasks: opw-3665256 opw-3700368 Forward-Port-Of: odoo/odoo#156321 Forward-Port-Of: odoo/odoo#150171
This fix resolves crashes that occurred when viewing tasks or records after upgrading to version 17.0, particularly when certain fields were removed during the upgrade process. The system now handles tracking information more carefully to prevent errors when displaying change history in emails and activity logs.