Monday, August 24, 2026
1 change · saas-19.1
Enhancements to existing features
Stock updates now reuse the same warehouse lookup when processing several products at once. This reduces unnecessary database work and should make batch stock adjustments more efficient 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