diff options
| author | Arnold Moyaux <arm@odoo.com> | 2019-08-21 12:33:41 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2019-08-27 11:32:54 +0000 |
| commit | 40487aca5cc52d62ad3fd08b9494f190e4413d8c (patch) | |
| tree | 549be24b7f86fd9302ed57af8daeb6e4861b3d2b /addons/mail/static/src/js/thread_windows/thread_window.js | |
| parent | 906480093a75e54ddf7d212b61c1d10d7f9c55ca (diff) | |
[FIX] stock, mrp: merge SFP for 2 different MO
usecase to reproduce:
- Set the warehouse with manufacturing 3 steps
- Create a BoM with a Components that use a Sub BoM
- Set Both product MTO + Manufacture
- Create a MO
You have only 2 picking for the first MO with the SFP
that contains both the finished product and the intermediate
component. However they are created and moved at two different times
since you could not create the finished product withtout the
component, so there is no meaning to put them both in the same picking.
It happens because the _assign_picking will merge moves with the same
procurement group. In our case, it's the wanted behavior to have the
2 differents SFP linked to the same MO. So the solution would be to
add a condition to _assign_picking and don't merge moves if they come
from different MO, at this point the field created_production_id would
fit. However this solution is not robust if a customer creates a
new rule that add a 4th steps to the production process.
opw-2055688
closes odoo/odoo#35915
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Co-authored-by: Andrea Grazioso (agr-odoo) <agr@odoo.com>
Diffstat (limited to 'addons/mail/static/src/js/thread_windows/thread_window.js')
0 files changed, 0 insertions, 0 deletions
