4abe02f8fe6a832900374534c3dda605cddfac13
When writing a workorder start or end date from its manufacturing order (and if the MO is unplanned), an error is thrown Steps to reproduce: 1. Install Manufacturing 2. Go to Settings > Manufacturing > Operations and enable Work Orders 3. Open an MO with Work Orders 4. Unplan the MO 5. Add a Scheduled End Date to one of the Work Orders 6. Save 7. An error is thrown Solution: Compute the new duration only if both `start_date` and `end_date` are set (and one of `date_planned_start` and `date_planned_finished` is passed in values) Problem: When only one of `date_planned_start` or `date_planned_finished` is written on an `mrp_workorder` (and the other is not set), the method `_calculate_duration_expected` is called but it fails because it passes a False value instead of a datetime which will raise the error `'bool' object has no attribute 'tzinfo'` opw-3004280 closes odoo/odoo#103927 X-original-commit: 35a596dbbc4e2e55461bf7e5e8ae12873249d4af Signed-off-by: William Henrotin (whe) <whe@odoo.com> Signed-off-by: Guillaume Merlin (megu) <megu@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%