Daily updates from Odoo
Thursday, May 21, 2026
3 changes · 17.0
Resolved issues and error corrections
This update fixes a memory error that occurred when searching for mail messages due to processing a very large number of records. The change improves performance and stability by processing mail records in smaller batches instead of loading everything into memory at once. This prevents the system from running out of memory and ensures smoother operation.
Original PR description
Memory error occurs due to the large number of data Iterate over mail message records using fetchmany() to process records in chunks instead of loading everything in memory. **PDB ouptput:** ``` >…
Memory error occurs due to the large number of data
Iterate over mail message records using fetchmany() to process
records in chunks instead of loading everything in memory.
**PDB ouptput:**
```
> /home/odoo/src/odoo/saas-19.1/addons/mail/models/mail_message.py(394)_search()
-> for id_, model, res_id, author_id, message_type, partner_id in self.env.cr.fetchall():
(Pdb) len(model_ids[model][res_id])
196421
```
**Traceback:**
```python
File "/home/odoo/src/odoo/saas-19.1/odoo/orm/fields.py", line 1256, in to_sql
return self._compute_sql_related(model, table)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/odoo/src/odoo/saas-19.1/odoo/orm/fields.py", line 739, in _compute_sql_related
sql = sql[fname]
~~~^^^^^^^
File "/home/odoo/src/odoo/saas-19.1/odoo/orm/query.py", line 371, in __getitem__
return self._field.property_to_sql(self, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/odoo/src/odoo/saas-19.1/odoo/orm/fields_relational.py", line 477, in property_to_sql
cotable = self.join(field_sql._table)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/odoo/src/odoo/saas-19.1/odoo/orm/fields_relational.py", line 555, in join
coquery = comodel._search(Domain.TRUE, active_test=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/odoo/src/odoo/saas-19.1/addons/mail/models/mail_message.py", line 401, in _search
model_ids[model][res_id].add(id_)
MemoryError
```
- OPW: 5933342
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis update resolves an issue where new tax settings for the Brazilian localization (l10n_br) were inadvertently overwriting existing customer configurations. The change ensures that only new tax records are created, safeguarding customer customizations and maintaining existing setups. This prevents disruptions to businesses using the l10n_br module.
Original PR description
Previously https://github.com/odoo/odoo/commit/9d965abb992d558ea4235ef5f87a7654c6f1ceae, new taxes, tax groups, and accounts for the l10n_br localization were loaded using try_loading. This caused existing customer configurations and customizations to be overwritten. This commit ensures that only newly introduced records are created, preserving all existing records and customer modifications. - OPW: 5917478 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update resolves an error occurring when sending purchase bills with agricultural tax (ClaveRegimenIvaOpTrascendencia) through the TicketBAI system in Spain. The issue stemmed from an incorrect value being submitted, preventing proper invoice processing. This fix ensures accurate transmission of these bills.
Original PR description
…hase bills **STEP TO REPRODUCE** 1. Create a bill with a invoice line with a regimen agricultura tax. 2. send the bill using TicketBAI. 3. You will get the following error: Error:cvc-enumeration-valid: Value '19' is not facet-valid with respect to enumeration '[01, 02, 03, 04, 05, 06, 07, 08, 09, 12, 13]'. It must be a value from the enumeration. opw-6200686