Sunday, August 23, 2026
1 change · saas-18.3
Enhancements to existing features
Stock quantity updates for multiple products now avoid repeating the same warehouse lookup for each product. This reduces unnecessary database work during batch operations, helping inventory processes run more efficiently without changing user-facing behavior.
Original PR description
When `_inverse_qty_available` processes multiple products, it performs the same warehouse search for every eligible product, resulting in redundant queries during batch operations. Look up the warehouse lazily once and reuse it for all products in the recordset. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr