92aeaa47ff592f3e40957ee092ca2245a1cc0781
- Create Product A: Routes: MTO and Manufacture Manufacturing Lead Time: 20 days - Create Product B: Routes: MTO and Buy Add a supplier with Delivery Lead Time: 10 days - Create a BOM: 1 unit of B to produce 1 unit of A - Create a SO for A, validate A MO is created with a Deadline set at SO order date - 20 days => OK A PO is created with order date set at SO order date - 10 days => Not OK, it should be - 30 days. In v13, the raw materials expected date is the order date. In v12, this date is computed as: order date minus Manufacturing Lead Time However, in both versions the PO order date is computed as the raw materials expected date minus Delivery Lead Time of the supplier. This comes from a change in the semantic of 'Planned Date' and 'Planned End Date'. In v13, the Manufacturing Lead Time is only taken into account in the Deadline, while in v12 it was taken into account in the Planned Date. However, the expected date of the raw materials still relies on the latter, not on the Deadline. In order to solve this, we apply the 'Manufacturing Lead Time' of the product and the company to 'Planned Date', 'Planned End Date' and 'Deadline' when the MO is created. Note that the solution is still not ideal in case no routing is set on the BOM since 'Planned Date' and 'Planned End Date' won't be updated later in the process. opw-2118951 closes odoo/odoo#40360 X-original-commit: b523f991572e32e69c5f8000a21553191ca54773 Signed-off-by: Nicolas Martinelli (nim) <nim@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%