Monday, April 13, 2026
4 changes · saas-18.2
Resolved issues and error corrections
This update resolves an issue where the LU reports were incorrectly showing only the first product with a missing internal reference. The change ensures all products with missing internal references are now displayed to the customer, improving report accuracy and data completeness. This is part of a larger effort to fix the FAIA XML export.
Original PR description
This is one of several commits fixing the FAIA xml export. The internal reference must be set for all products reported in the FAIA report. When there are multiple products missing this field, our previous code only reported the first ID to the customer. This commit shows the customer all incorrectly configured products. opw-5427296 Forward-Port-Of: odoo/enterprise#113452
This update corrects a bug in the l10n_lu_reports module that caused incorrect calculations of total debit and credit amounts in reports. The fix ensures that invoice line amounts are accurately represented, resolving validation errors and improving report accuracy. This impacts financial reporting within the Lu accounting module.
Original PR description
This is one of several commits fixing the FAIA xml export: - #113452 - #113455 - #113846 When an invoice line has a negative `price_unit`, the `Invoice/Line/InvoiceLineAmount/Amount` element has a negative value. This causes validation errors when comparing the total debit or credit values (such as `SalesInvoices/TotalDebit`) to the individual amounts, as the sum of individual "debit" lines will include some credit amounts and vice versa. Solution: record if the line is actually a debit or a credit, then use the absolute value of the balance in the Amount element. opw-5427296 [Link](https://www.odoo.com/odoo/unassigned-tasks/5427296) Forward-Port-Of: odoo/enterprise#113316
This update enhances the accuracy of invoice imports by adding a key field ('partner') to the query builder for move lines. This resolves issues with unsynchronized values during import, particularly related to invoices, and improves the overall reliability of the system. It's part of a larger community-driven effort to refine import processes.
Original PR description
This commit is part of a bigger commit on the community side- to refactor the import code of BIS3 Invoice to fix various unsynchronized values issues. task-id: 5058687 Forward-Port-Of: odoo/enterprise#108356
This update significantly speeds up the process of searching for attachments within the accounting module. Previously, the search was slow, particularly when dealing with a large number of records. This change optimizes the search method, resulting in a much faster and more efficient system.
Original PR description
The search method is called once per record in self to get the attachments. This is a backport of odoo/enterprise/pull/85346 Benchmark: | No AML in self | Before PR | After PR | |----------------|-----------|----------| | 80 | 100 ms | 4 ms | | 5000 | 3.3 s | 200 ms | Community PR: odoo/odoo/pull/256399 opw-5881026 Forward-Port-Of: odoo/enterprise#112975 Forward-Port-Of: odoo/enterprise#112345