-
- Downloads
[IMP] mrp: use prefetch for recursive quantities computation
This commit achieves two things:
1) Avoid calling super() on an empty recordset, in case all products
are kits. Even on an empty recordset, some queries would be fired.
This commit avoids them.
2) Use prefetch to read kit components quantity fields, to make use
of the recorset optimizations that ends up saving sql queries.
Otherwise, component quantities were computed on-demand one by one.
closes odoo/odoo#93529
Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
Please register or sign in to comment