Wednesday, May 12, 2021
2 changes · master
Enhancements to existing features
Payslip reports and related emails are now created by an hourly scheduled process instead of during payslip validation. This reduces the risk of payroll validation failing or timing out when many payslips are processed at once.
Original PR description
Instead of generating the payslip report (and the email) upon payslip validation, run them in batches in a cron every hour. Previously a big batch of payslip could lead to a time out and thus a fail. Task ID: 2501296
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