get_preferences should not use the global context
issue3837 review5031002
This commit is contained in:
1 parent
93109996c5
commit
fcf8bef237
1 file changed
+3
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user