diff options
| author | fw-bot <otis@odoo.com> | 2019-10-16 12:30:23 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-10-18 08:35:39 +0000 |
| commit | ed1236275ffae625716af5e0dca730c0c26117cd (patch) | |
| tree | 0f77d8ecbe1768a2dba67bcccac0ed69da01a41a /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 97a5054eeba61bcacc30ee865a03ea64dad259b4 (diff) | |
[FIX] base: Remove label from views if user groups forbid the field
Without this patch, if a view defines a `<label for="forbidden_field"/>` anywhere, the web client tries to fetch the field data, but since the user has no access, it gets an error.
Now, if the label targets a forbidden field, it gets removed from the view, as happens with the related field. The client doesn't know of that field's existence and no errors happen.
closes odoo/odoo#38876
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
