cf2d37ecd31e75124e0056e149e45605b682873b
Steps to reproduce the bug: - Create a kit product - Create a storable product without BoM “P1” - Create a MO to produce one unit of “P1” - Add the kit product as component - confirm the MO Problem: The Manufacturing Order is cancelled. This is because the MO contains a kit product, and we need to generate moves based on its Bill of Materials. However, at the same time, we cancel and remove the move associated with the original product, which is no longer relevant. But We remove it before creating the moves generated from the phantom product. Consequently, since we cancel the move, the 'compute_state' of the MO is triggered, and as there is only one 'move_finished' status in 'cancel,' the status of the MO is set to 'cancel: https://github.com/odoo/odoo/blob/5c238bbb18c682ff2d25f740aad604feb7bb5bbc/addons/mrp/models/mrp_production.py#L462-L463 Opw-3548464 closes odoo/odoo#140016 X-original-commit: baa0924974fee0115a0bce117141a8096455b88d Signed-off-by: William Henrotin (whe) <whe@odoo.com> Signed-off-by: Djamel Touati (otd) <otd@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%