summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorDamien Bouvy <dbo@odoo.com>2019-09-30 13:10:29 +0000
committerDamien Bouvy <dbo@odoo.com>2019-09-30 16:20:51 +0000
commit652ebb96e5a9b8bedf0879691fc726e619d5de78 (patch)
treea84dc6383278bde085eb45a5750b942958b7fe90 /addons
parentb32132973c79129933bd8aaa7439e5bb5258fbc8 (diff)
[FIX] tests: correctly handle invisible fields in form proxy
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>
Diffstat (limited to 'addons')
0 files changed, 0 insertions, 0 deletions