ef604945d80067d7560d67bfb68a551082f78a48
To reproduce the issue: 1. Create a subcontracted product P 2. Create and confirm a planned transfer with 10 x P 3. Set the done quantity to 8 4. Set the done quantity to 7 5. Open the detailed operation (i.e., the MO) Error: The producing quantity of the MO is 1, it should be 3 When setting a smaller done quantity than the demand (step 8), we update the expected quantity of the related MO, we set its producing quantity, and we create a backorder. When decreasing the done quantity, we update/cancel the related productions. But here is the issue: in the above case, we simply decrease the expected quantity of the backorder, so we just lose the cancelled quantity, the user "can't" produce this quantity anymore. In such situation (when decreasing the done quantity), we should consider the last production (i.e., the last backorder) as the WIP one. So, we should update/cancel the other productions and increase the expected quantity of this last backorder, so the user can produce it again. OPW-3557632 closes odoo/odoo#142513 Signed-off-by: William Henrotin (whe) <whe@odoo.com> Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%