Skip to content
Snippets Groups Projects
Commit ed123627 authored by fw-bot's avatar fw-bot Committed by Thibault Delavallée
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#38876

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 97a5054e
Branches
Tags
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