652ebb96e5a9b8bedf0879691fc726e619d5de78
The form proxy will raise an error if a required field is not filled, even when the web client would let it pass through. Indeed, the web client (correctly) assumes that a user cannot fill in an invisible field and that something will probably be done on the server to handle that (e.g. an override of the write/create or simply a command-handling code by the ORM). Since invisible fields do not even get a widget instaciated for them, no validation takes place whatsoever. Since it is sometimes (for obscure reasons) necessary to include all kinds of invisible fields in tree view (e.g. to get correct values for related stored fields, somehow), it is possible that required fields in a view are in fact not really required since they are ignored by the web client and then correctly handled/modified server-side. This commit adapts the test proxies to behave similarly to the web client (since that is, after all, the goal of these proxies) and to ignore invisible fields when validating views. closes odoo/odoo#37432 Signed-off-by: Damien Bouvy (dbo) <dbo@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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%