Monday, August 24, 2026
1 change · saas-18.4
Enhancements to existing features
Stock quantity updates now reuse the same warehouse lookup when processing multiple products. This reduces repeated database work during batch operations, helping inventory updates 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 Forward-Port-Of: odoo/odoo#283564