Monday, January 12, 2026
1 change · saas-18.1
Resolved issues and error corrections
This update resolves a technical error that prevented users from opening the Trial Balance report when no report lines were available. The fix adds a check to avoid an error when report lines are missing, ensuring the report can always be generated correctly. This improves the reliability of a key financial reporting tool.
Original PR description
Currently, An error is generated while a user is trying to open the 'Trial Balance' report when report lines are not available. Steps to reproduce: - Install an `account_reports` module (without demo). - Go to Accounting / Configuration / Management / Accounting Reports, and open the `Trial Balance` report. - Open the `Trial Balance` line and delete all (Expressions)lines from it. - And Open Accounting / Reporting / Audit Reports / Trial Balance. `IndexError: tuple index out of range` An error occurs when the system tries to access report lines at [1], but no lines are available. Link [1]: https://github.com/odoo/enterprise/blob/c54267a89fb5013138abffdb03a456da2b8a7938/account_reports/models/account_trial_balance_report.py#L428 To resolve this, add a condition to check that if the report has no lines then skip the process of adding a `Total` in the report lines. Sentry-6286872462