Skip to content
Snippets Groups Projects
Commit a41aa063 authored by Jairo Llopis's avatar Jairo Llopis
Browse files

[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#28755

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent b3c88566
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment