reload_context should not use its context

issue3837
review5041002
This commit is contained in:
Cédric Krier committed 2014-04-12 23:41:39 +02:00
1 parent 5fb30848bd
commit 6552c8515e
1 file changed
+4 -1
+4 -1
View File
@@ -105,7 +105,10 @@
'method': 'model.res.user.get_preferences',
'params': [true, {}]
};
var prm = Sao.rpc(args, this);
// Call with custom session to not send context
var session = jQuery.extend({}, session);
session.context = {};
var prm = Sao.rpc(args, session);
return prm.then(function(context) {
this.context = context;
}.bind(this));