Changing output product from a bom assigned to a product leads to inconsistent state
Steps to reproduce:
- Create a production bom with 2 components and a output product
- Assign this BOM as default bom for the output product.
- Create a move for the output product for the storage to customer.
- Remove (or change the product) the bom output line.
- Execute the Supply Stock wizard:
A domain validation error is raised because the selected bom is not valid from the domain.
I will expect that the system raises a message on step 4 which is what is causing the issue.