Skip to content
Snippets Groups Projects
Commit ca478f03 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#72422

X-original-commit: 2841525a
Signed-off-by: default avatarRémy Voet <ryv-odoo@users.noreply.github.com>
parent 49f95a9a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment