Skip to content
Snippets Groups Projects
Commit 8d792001 authored by fw-bot's avatar fw-bot
Browse files

[FIX] base: call context_get with the right user


self.env.user returns the current user but browsed with the superuser:
- self.env.user == current user
- self.env.user.env.user == administrator

get_context uses self.env.user to retrieve the context of the user.
Before this patch, the name of the filters was translated in the
language of the administrator instead of the current user.

Closes odoo/odoo#40086

closes odoo/odoo#40170

X-original-commit: b39c8da2
Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
parent 06273584
No related branches found
No related tags found
Loading
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