Skip to content
Snippets Groups Projects
Commit 2841525a authored by Aurélien (avd)'s avatar Aurélien (avd)
Browse files

[FIX] purchase_stock: improve partner._compute_on_time_rate perfs


Improve res.patner._compute_on_time_rate performances by calling
mapped('quantity_done') once on all the order_lines.move_ids.

Moving it out of the for loop allows to befinit from the performance
gains of the read_group call in stock.move._quantity_done_compute.

closes odoo/odoo#72068

Signed-off-by: default avatarRémy Voet <ryv-odoo@users.noreply.github.com>
parent c19660c8
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