[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#40142
Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
Please register or sign in to comment