From 6552c8515e4e43432a5f83e2721d454c74ef97ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 12 Apr 2014 23:41:39 +0200 Subject: [PATCH] reload_context should not use its context issue3837 review5041002 --- src/session.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/session.js b/src/session.js index 4c6bbf672d..bb4150536a 100644 --- a/src/session.js +++ b/src/session.js @@ -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));