Skip to content
Snippets Groups Projects
Commit ca23abf5 authored by Xavier Morel's avatar Xavier Morel
Browse files

[FIX] base: correctly check debug mode when formatting access errors


Intent of checking `group_no_one` was always to query the advanced
info / debug mode, however when the semantics of group_no_one got
changed in 31518bc0 this site was
missed, and now always displays "advanced" errors for internal
users. Which was not the intent.

Also since we're printing `display_name` and some of them annoyingly
hook onto context variables to show extended information, reset the
context to the user's default in order to avoid such
extended-formatting `display_name`.

Also fix "debug mode" in `TestIRRuleFeedback`, which has been broken
since time immemorial (likely as long as the group_no_one semantics
changed).

closes odoo/odoo#135162

X-original-commit: f9d55c69
Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
parent 287a0322
No related branches found
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.
Finish editing this message first!
Please register or to comment