-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] mrp_subcontracting: avoid full cancel when multiple step record
Steps to reproduce: - Create a subcontracted BoM for a product - Create a planned reception for this product, with a demand of 10, mark it as todo. - Click on the moves details and in the 'Subcontract' wizard, set the quantity to 5 and click 'Continue'. - Now set the quantity to 2 and click 'Record Production'. - Close the wizard without recording the last quantity. - Validate the picking (there should be only 7 out of 10 quantity done), and don't generate backorders. - When checking the related Subcontracted MO (Inventory Overview -> Filters -> Archived -> Subcontracting), all 3 MO related to this reception were cancelled. Issue: When checking for the still active_productions, it wasn't taking into account that there could be multiple still-active productions (like when a production is recorded in multiple times like here). This messes up with the 'in' condition, cancelling productions that shouldn't be. Task-3383596 Part-of: odoo#129009
- Loading branch information
Showing
2 changed files
with
46 additions
and
4 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