get_preferences should not use the global context

issue3837
review5031002
This commit is contained in:
Cédric Krier committed 2014-04-12 23:40:54 +02:00
1 parent 93109996c5
commit fcf8bef237
1 file changed
+3 -1
+3 -1
View File
@@ -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):