Skip to content
Snippets Groups Projects
Commit c261eb38 authored by Laurent Mignon's avatar Laurent Mignon
Browse files

[IMP] stock: Improves stock_quand_package.unpack performance


Before this change, when a package was unpacked the SQL query into the  method was looking up all the records into the stock_quant table to find duplicate entries. This could lead to severe performance issue on large database. With this change, if the  method is called on a recordset, the SQL query will only try to find duplicate records for records with the same product's ids and location's ids than those in the recordset.

closes odoo/odoo#121839

Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
parent a4c315ab
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment