Daily updates from Odoo
Tuesday, August 27, 2024
2 changes · master
Resolved issues and error corrections
A reporting error was fixed so the Colombian VAT withholding certificate can open correctly. The report now handles missing subheader information safely, preventing users from seeing a crash instead of the accounting report.
Original PR description
**Steps to reproduce:** - Install l10n_co_reports - Switch to a Colombian company (e.g. CO Company) - Go to "Accounting / Reporting / Colombian Statements / Certificado de Retención en IVA" **Issue:** A traceback is triggered: "UncaughtPromiseError > OwlError Caused by: TypeError: Cannot read properties of undefined (reading 'colspan') ..." **Cause:** When generating the subheaders from the columns, the case (where the column is not part of a group key and its "comparison_mode" attribute is not set) is not handled. Therefore subheader has "Undefined" as value, which generates an error when trying to access its "colspan" property in the template. **Solution:** When generating the subheaders, always return the object with the default values when the column is not part of a group key.
The accounting reconciliation filters now use the correct criteria for reconcilable accounts. This helps users find genuinely unreconciled entries or entries with remaining balances more accurately, reducing confusion during account review.
Original PR description
In this commit: https://github.com/odoo/enterprise/pull/67611/commits/cc0b0b9f2c60d837567062b3f7f0f6905d90b5f9 we added new filters but the original spec was wrong, this commit will change those filters. - For the two filters, the accounts must be reconciliable - To distinguish the two filters: Unreconciled >> Will match move line with no matching number or partial entries With Residual >> Will match move like that have a residual != 0 task: 4141159 Community Pr: https://github.com/odoo/odoo/pull/178023