Wednesday, May 12, 2021
1 change · master
Resolved issues and error corrections
Inventory actions involving serialized products now clean up only the relevant product records instead of scanning the full inventory history. This reduces delays on large databases and adds routine daily cleanup to keep stock records efficient over time.
Original PR description
**Description of the issue/feature this PR addresses:** On large database with product with serial number, when you perform those actions - on product : action_open_quants() - on stock.quant.package : unpack() It take lot of time (12 secondes with database with 1 200 000 stock.quants). This PR perform merge and unlink zero quant only on current product. And make an daily vacuum This issue exist in V12 to master. @nim-odoo @rco-odoo -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr