07ef90bcd61bdd8f87529f8f2bd93a02b129c536
Steps to reproduce: - Add a form. - Setup a conditional visibility on one field, using the "contains" or "does not contain" operator. - Save. - Open the HTML editor and voluntarily break the form by changing the "data-visibility-dependency" attribute to a random text (non existing field used as a dependency). - Save => Crash on page load. One customer apparently reached that case of receiving a `null` value (actually possible when retrieving a form data which is an unchecked checkbox for example) but combined with an operator which really requires the received value to be a string... but not sure how this is possible. In any case, it should not make the form crash: it's just a problematic *visibility* dependency, it should not prevent using the form. For now, let's prevent this case to crash and add an error in the console so we may investigate the issue if it ever shows up in a test. opw-3243345 closes odoo/odoo#125981 X-original-commit: 27144695ff4cd5fc026332c324cfdf8498d5ef14 Signed-off-by: Guillaume Dieleman (gdi) <gdi@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%