Name: [PERF] mrp: optimize move_finished_ids update to improve backorder creation performance for serial-tracked production

State: Killed finished in 75m

PR State: merged

PR Author: Roy Le

PR Author Email:

PR: #1113

Committer: Roy Le

Committer Email: roy.le@viindoo.com

Commit: 0f2da4a87002016ed2611730c022fdbfcd23c70b

Description:

                                            [PERF] mrp: optimize move_finished_ids update to improve backorder
creation performance for serial-tracked production

Previously, all move_finished_ids in non-done state were updated
regardless of whether their date or date_deadline values actually
changed. This led to unnecessary write operations and potential
slowdowns, especially in serial-tracked production where each finished
product line generates a separate stock.move.

This update improves the performance of completing manufacturing orders
that produce serial-tracked finished products.
                                            

Branch: 16.0

Instance ID: 0

Age:

Up-time: