Daily updates from Odoo
Sunday, March 8, 2026
1 change · 17.0
Resolved issues and error corrections
This update optimizes the process of validating journal entries for ZATCA compliance, addressing a previous memory issue that caused slowdowns with large journals. By directly searching for relevant documents, the system now uses significantly less memory and avoids performance bottlenecks, ensuring smoother onboarding for users.
Original PR description
Behavior before: Sanity check looped over all account moves of the journal, filtering in Python for ZATCA documents. This caused memory errors when the journal had hundreds of thousands of moves. Behavior after: The check now searches directly on l10n_sa.edi.document with a domain that filters only relevant moves with state 'to_send', reducing memory usage and avoiding Python-level loops. Root cause: Loading all moves and their One2many edi_document_ids in memory for filtering caused excessive memory usage and MemoryError on large journals. OPW-5972073 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#251732