Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

[PERF] sale: improve compute expected date performance in sale order #554

Open montesinose opened 1 year ago

montesinose commented 1 year ago

Without implementing this update, every time the program reaches the section containing the ".filtered()" command, it necessitates a fresh retrieval from the database. As the number of sale orders increases, this process becomes a constraint.

However, with the inclusion of this patch, prior to reaching that specific command, Odoo is aware that it will require all sale.order.line records, enabling it to retrieve them collectively.


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr