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}: update demand to match subcontract MO
Steps to reproduce: - Manufacturing -> Configuration -> Settings -> Enable subcontracting - Products -> Bill of Material - Create a 'subcontracting' BoM for product A from supplier S - Inventory -> Overview -> Receipts -> New immediate transfer - Set S as 'Receive from', A as product and hit save - Open move details and set the MO quantity to produce to 10. - Record components for all 10 finished products Issue: After recording the production, a backorder is created for 1 less quantity than before on top of the existing MO with 10 qty. Recording the production once again (by clicking again on the Record Production button, since the form didn't close) will somehow again increment the initial MO's qty to produce, while validating the backorder MO. This is mainly due to an inconsistency between the subcontracted move's demand and the subcontract MO's qty to produce. By syncing them, the issue can be avoided. Task-3383596 Part-of: odoo#129009
- Loading branch information