Saturday, May 2, 2026
4 changes · master
Resolved issues and error corrections
This update resolves a technical issue causing TypeErrors during testing of Odoo's tax processing (l10n_do_edi) module. The fix ensures error messages are correctly formatted, preventing test failures and improving the stability of tax calculations.
Original PR description
Problem: A TypeError traceback occurs with the test cases because the error was not formatted properly from l10n_do_edi_blocking_errors when _format_error_text is called. Solution: Map the error message properly in l10n_do_edi_blocking_errors. Related PR: https://github.com/odoo/enterprise/pull/112814 runbot-build-error-242502 Forward-Port-Of: odoo/enterprise#114392
This update fixes an issue where order reports, particularly those using the 'From the very start' period, displayed string-based external values in an unordered fashion. The change ensures that these values are now correctly sorted by date, improving the accuracy and reliability of financial reporting.
Original PR description
Ensure string-type external values are correctly sorted by date when using the "most_recent" formula. This resolves an issue where values appeared unordered, especially for expressions using the "From the very start" period. task-5951888 Forward-Port-Of: odoo/enterprise#115275 Forward-Port-Of: odoo/enterprise#113837
This update resolves a technical problem related to how the CDR (Electronic Delivery Document) is processed within the Odoo Enterprise system. Specifically, changes in how binary data is handled caused errors during PDF generation for delivery slips. This fix ensures accurate processing of CDR data, preventing disruptions to delivery tracking and reporting.
Original PR description
Two issues both stemming from the Binary field changes in odoo/enterprise#104714: 1/ `_l10n_pe_edi_unzip_edi_document` returns the CDR as bytes (from `zipfile.read()`), so calling `.encode()` on it raises `AttributeError: 'bytes' object has no attribute 'encode'` when attaching the CDR to a sent delivery guide. 2/ `attachment.raw` no longer returns bytes but a `BinaryValue`, so `etree.fromstring(attachment.raw)` in `_l10n_pe_edi_get_qr` raises `ValueError: can only parse strings` when rendering the delivery slip PDF for a sent picking. Use `attachment.raw.content` to get the bytes. The existing test missed both because it patched `_l10n_pe_edi_sign` to return a `str` and never rendered the report. Patch with `bytes` to match what the real method returns and render the delivery slip to exercise `_l10n_pe_edi_get_qr` end-to-end. task-6107987 (found these bugs while working on) Forward-Port-Of: odoo/enterprise#115958
This update fixes a previous issue where an error in the bank reconciliation quick create form would unexpectedly open a dialog box. Now, errors are displayed directly, providing a clearer and more intuitive user experience. This change improves usability and ensures users immediately see and address any problems during bank reconciliation setup.
Original PR description
Before this commit, when there is an error in the bank rec widget quick create. We open the form dialog which is kind a weird, we would rather expect to have the error displayed. This commit will override the showFormDialogInError to close the quick create and throw the error. no task id Forward-Port-Of: odoo/enterprise#115432