57fa76c01fe5cfe983b9fca03a46d8f64316c289
Steps to reproduce the issue (see opw): - Add a form to a page - Add a checkbox - Add a second checkbox that is required and visible only if the first checkbox is not checked - Save - Do not check anything and try to send => Good, you can't, the required checkbox is not set - Check the second checkbox and try to send => Good, you can, the required checkbox is set - Go back to the empty form, check the first checkbox and try to send => Bad, you can't but you should: the required checkbox is hidden, it is not supposed to be required anymore. (Not that arguably, that two checkboxes setup should be replaced by a required selection field but the issue of the OPW would remain as there is another required conditionally-hidden field (a file upload) when the second checkbox is checked.) Conditionally-hidden fields should not require validation while they are hidden. Indeed, their purpose is to be able to enter additional data when some condition is fulfilled. If such a field is required, it is only required when visible. The problem only occurred with checkboxes, the other fields were already working in that case. Although there could be issues with dates too, this commit added a series of FIXME and TODO comments as well as some things need to be investigated. opw-3003952 closes odoo/odoo#106204 X-original-commit: f501c25a9d33399cfbb45526d95038266d91686e Signed-off-by: Romain Derie (rde) <rde@odoo.com> Signed-off-by: Quentin Smetz (qsm) <qsm@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%