Skip to content
Snippets Groups Projects
Commit 475e6b3c authored by Arnold Moyaux's avatar Arnold Moyaux Committed by William Henrotin
Browse files

[FIX] sale_mrp: Link to MO on SO


commit 96b56ea3 fix the link between SO <-> MO in manufacture 3 steps
but break it on other configuration

It happens because without `store after manufacturing` the procurement
group is not copied and used on the MO. And the stat button search on
procurement group with a MO and a SO on it. Before it was searching
on `stock_move.created_production_id` and thus was able to find the MO.

This commit do a mix of the 2 solutions. It search for procurement group
linked to SO and MO + created_production_id to be sure to find all the
MO related to a SO

opw-2645042

closes odoo/odoo#79015

Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent 755c074a
No related branches found
No related tags found
Loading
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