bf5e1debf9c684c1bbf3ca440a87001fd7faf9fa
Prior to this commit, MOs would throw a usererror if there were no components in it. This restriction made it so MOs created by a replenishment (i.e. `warehouse.orderpoint`) for a BoM with no components were never confirmed and the `qty_to_order` would accumulate for each replenishment's new draft MO. Steps to reproduce: 1. create a bom for a new product (w/ manufacturing route) with no components 2. create and confirm a sales order for the new product 3. go to Replenishment and automate the product's replenishment 4. create a new sales order for the product Expected result: 2 confirmed MOs where the quantity of the first MO matches the first sale order's quantity and the 2nd MO matches the second sale order's quantity Actual result: 2 draft MOs where the first MO matches the quantity of the first sale order and the second MO matches the quantity of the first sale order + the quantity of the second sale order This commit makes it so MOs can now be confirmed even when it has no components. Note this requires changing the logic in a few locations to ensure expected behavior still occurs including: - backorders are automatically confirmed. - `reservation_state` is recalculated when expected (will be blank when no components). Task: 2422698
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%