Daily updates from Odoo
Wednesday, November 19, 2025
1 change · 17.0
Enhancements to existing features
This update makes delivery lookup by lot much faster by changing how the system gathers the needed information. It reduces delays for users working with many lots, especially in large stock operations, so screens and processes complete more quickly.
Original PR description
### Description: This refactoring replaces the recursive calculation in `_find_delivery_ids_by_lot` with an iterative process. This change significantly reduces the amount of database queries by prefetching and batching all required lines in a single pass, and it also eliminates the overhead caused by repeated recursive function calls. ### Benchmark: | Total Lots | Before | After | |------------|--------|--------| | 69 | 1 sec | 106 ms | | 1152 | 1 min | 5 sec | ### Reference: opw-5096599