You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] mrp: update BoM on scrap when product is changed
Problem: When a user changes the product on a scrap order, the bom_id field
does not get updated. If they update the product from a product that has BoM
to a product that doesn’t have one, then the bom_id field is hidden and remains
set. This will cause the scrap quantity to be set to 0 when they validate the scrap.
However, the product move actually happens for the correct quantity causing an
inconsistency.
Purpose: This will either set the bom_id field to False if the new product doesn’t
have a valid BoM, or it will update it to the first available BoM.
Steps to Reproduce on Runbot:
1. Create a scrap order for a product that has a kit type BoM and set the kit field.
2. Change the product to a product without a kit type BoM.
3. Validate the scrap order.
4. Observe the quantity field is set to 0, but there are product moves for the
correct quantity.
opw-5122880
closesodoo#234050
X-original-commit: 07a6b28
Signed-off-by: Steve Van Essche <[email protected]>
0 commit comments