cf9ff8e41a05bdaf6d46d9f6753c5f56ed19fb1e
Usecase to reproduce: With BoM structure - Product A (RR 1-20) | Product B (MTO) | Product C (RR 5-50) | Product D (Buy) Launch the RR. The MO are: Current Behavior - Product A 20 - Product B 20 - Product C 50 - Product C 70 Expected Behavior - Product A 20 - Product B 20 - Product C 50 It happens because the MO are created as draft during the `_run_manufacture` and are confirm at the end of `_procure_orderpoint_confirm` in '_post_process_scheduler`. However at the first MO for product A, it creates a MO for product B and since it consumes product c, it checks if the orderpoint should be trigger. MO for product C still "draft" and the orderpoint forecast is now -20, so it will create a new procurement for product C with 70 units To fix it we take the MO draft linked to the orderpoint for the forecasted quantity. closes odoo/odoo#89079 X-original-commit: 199a0dd0f013655a3c2345a41bc7c721e09bfc68 Signed-off-by: Arnold Moyaux <arm@odoo.com> Signed-off-by: William Henrotin (whe) <whe@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%