Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] mrp: allow skipping lot/sn on workorder
Usecase to reproduce: - Create a MO for drawer with SEC assemble BoM - Plan the workorders - In the first workorder record the production without specify a lot or serial number. - Second workorder, register a new serial for finished product and record production. A UserError that prevent to use a new serial number is raised. It happens because the system check the remaing quantity on other workorders + the quantity already produced for the current lot. In this case the remaining quantity for the first workorder is 0 and the current lot was not produced. However it should count the lines without lot as a 'remaining quantity' since they could be used later to create a new serial or lot number. This commit register the lines without lot and use them to raise the UserError and compute the allowed lot domain for finished lots.
- Loading branch information
Showing
2 changed files
with
81 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters