From 0322f77279e9128a8bd35832406bd2f8488cfdb3 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 29 Jan 2014 13:46:41 +0100 Subject: [PATCH] [FIX] jsonrequests exposes same context object as it's session bzr revid: fme@openerp.com-20140129124641-om4s0ts1zvf73zk0 --- openerp/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/http.py b/openerp/http.py index 4ebc9b6ecc2..ca3330a7baf 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -352,7 +352,7 @@ class JsonRequest(WebRequest): # Read POST content or POST Form Data named "request" self.jsonrequest = simplejson.loads(request) self.params = dict(self.jsonrequest.get("params", {})) - self.context = self.params.pop('context', self.session.context) + self.context = self.params.pop('context', dict(self.session.context)) def dispatch(self): """ Calls the method asked for by the JSON-RPC2 or JSONP request