From fcf8bef237043060087bf471fc3ac42ecb70633f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 12 Apr 2014 23:40:54 +0200 Subject: [PATCH] get_preferences should not use the global context issue3837 review5031002 --- tryton/common/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tryton/common/common.py b/tryton/common/common.py index d585cc1628..efc39aea69 100644 --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -1359,7 +1359,9 @@ def RPCContextReload(callback=None): rpc.CONTEXT.update(context()) if callback: callback() - RPCExecute('model', 'res.user', 'get_preferences', True, callback=update) + # Use RPCProgress to not send rpc.CONTEXT + RPCProgress('execute', ('model', 'res.user', 'get_preferences', True, {}) + ).run(True, update) class Tooltips(object):