Wednesday, August 12, 2026
2 changes · saas-19.4
Enhancements to existing features
Document attachment link calculations have been optimized to reduce unnecessary searches and improve performance. This should make document-related operations feel faster, especially where many attachments are involved, without changing user-facing features.
Original PR description
* Prefetching attachment_ids in sudo allows to limit the scope of the documents search * Removing the location filter on the document, not worth the performance hit. Follow-up of Task-5882406 Forward-Port-Of: odoo/enterprise#127062
We name threads to get actual names instead of `Thread-<n>` in tracebacks. Before: ```python ERROR ? odoo.addons.iot_drivers.exception_logger: Unhandled exception in thread Thread-11 Traceback (most recent call last): ... raise Exception("in display driver") ``` After: ```python ERROR ? odoo.addons.iot_drivers.exception_logger: Unhandled exception in thread DisplayDriver(HDMI-A-1) Traceback (most recent call last): ... raise Exception("in display driver") ```
Original PR description
We name threads to get actual names instead of
`Thread-<n>` in tracebacks.
Before:
```python
ERROR ? odoo.addons.iot_drivers.exception_logger: Unhandled exception in thread Thread-11
Traceback (most recent call last):
...
raise Exception("in display driver")
```
After:
```python
ERROR ? odoo.addons.iot_drivers.exception_logger: Unhandled exception in thread DisplayDriver(HDMI-A-1)
Traceback (most recent call last):
...
raise Exception("in display driver")
```