Tuesday, May 5, 2026
1 change · saas-18.2
Enhancements to existing features
Large supplier bills imported from Peppol or manual XML uploads now process much more efficiently. The change reduces repeated database work during import, helping very large bills complete successfully instead of timing out.
Original PR description
### Description: The upload and import process for large XML bills via Peppol or manual upload was inefficient due to two primary bottlenecks. First, the system performed individual queries per line to match products, taxes, and accounts, leading to an N+1 query issue. Second, multiple write operations were executed on each line to update various fields. This commit introduces batching and improve caching for these operations to reduce database call. ### Benchmark: | N° of lines | Before | After | |-------------|---------|-------| | 30264 | Timeout | 11min | ### Reference: opw-5416612 Forward-Port-Of: odoo/odoo#248680