Tuesday, March 3, 2026
1 change · saas-18.2
Resolved issues and error corrections
This update fixes a critical issue in the invoice processing cron job for Brazil (l10n_br_edi_services). Previously, a single error would halt the entire process, wasting IAP credits. The fix now processes invoices in smaller batches, committing changes after each, ensuring progress is preserved and preventing disruptions.
Original PR description
The cron searched with limit=batch_size and only retriggered when >batch_size records were found which never happens. It also ran all invoices in a single transaction so one failure rolled back all progress while IAP credits were already consumed. Search batch_size + 1 so remaining invoices are detected, and commit after each invoice to preserve progress. opw-5954211 Forward-Port-Of: odoo/enterprise#108468 Forward-Port-Of: odoo/enterprise#108191