3de3a1903a19ed6a8b79e76b46c3761527d0bffe
The safeConvert function in the useDateTimePicker hook will call parseDate with an undefined format when no format option was provided to the hook. Before this commit, since the options object passed to parseDate still contained the format property, the undefined format will also be passed on to the parseDateTime function. This is problematic, because now the parser will use the default datetime format, and it will fail because of the absence of a time value in the input string. For some input formats, parseDateTime will still yield the correct result using one of its backup parsing methods. However, a wrong result will be returned for date formats containing some textual parts (for example MMM/dd/yyyy). Making sure no undefined format values are passed on in the parseDate function resolves the problem. opw-3478797 closes odoo/odoo#136221 X-original-commit: b04482ed87db05b3fc2523a08ce7ca5818af578b Signed-off-by: Michaël Mattiello (mcm) <mcm@odoo.com> Signed-off-by: Tom De Caluwé (tdc) <tdc@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%