diff options
| author | fw-bot <otis@odoo.com> | 2019-11-12 15:07:05 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-11-13 09:35:16 +0000 |
| commit | 8d792001c67a335aa6daa09366a769ab5c4a8808 (patch) | |
| tree | 4da1853ae291217e0ffefbbaddbdedcdad6e25bb /addons/web/static/src/js/views/basic | |
| parent | 062735847c6ea145804207952acb3a8e2ebe7259 (diff) | |
[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: b39c8da2a49e43cc1bd7c837bf0e99ad437992ff
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
