From 55c58abdf5a8b94ea5e1bfd08cb05daae604fea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Tue, 10 Dec 2013 11:34:04 +0100 Subject: [PATCH] Set the context's user when fetching user preferences review1711002 --- trytond/res/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/res/user.py b/trytond/res/user.py index db829105b2..d3e714042e 100644 --- a/trytond/res/user.py +++ b/trytond/res/user.py @@ -337,7 +337,7 @@ class User(ModelSQL, ModelView): if preferences is not None: return preferences.copy() user = Transaction().user - with Transaction().set_user(0): + with Transaction().set_user(0, set_context=True): user = cls(user) preferences = cls._get_preferences(user, context_only=context_only) cls._get_preferences_cache.set(key, preferences)