e9127a9fdffad3281548eb2774871d0d58114a92
Steps ===== - Install module project - Open the form view of a project - Set a planned date - Click anywhere on the page to remove the focus from the date picker Issue ===== The chosen date disappeared without any explanation to the user Cause ===== odoo#123268 introduced some changes related to the planned dates of projects. 1. the write method is modified to avoid the write of only a start/end date (both date should be set or none of them) 2. a required is added on the start date field in the form view of project 3. an onchange is added to avoid to have one of both field set and not the other This last change is problematic as it overrides the required behavior of the date fields. On top of that, https://github.com/odoo/odoo/pull/143509 changed the behavior of the datepicker widget that only display the full range by default if both fields are required (which is not the case here if they are empty). The combination of those changes have the consequence that the planned date field is unusable in the form view of projects. Fix === The onchange being only useful in form view, it is deprecated as the required attribute is sufficient for this usecase and provide the user warnings if he forget a field. On top of that a required attribute is also set on the end date field. task-3628069 closes odoo/odoo#145167 Related: odoo/enterprise#52280 Signed-off-by: Julien Mougenot (jum) <jum@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%