From ae5c6ce344247da704ce47fe0fec9a3450abeab7 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 27 Sep 2016 12:27:47 +0200 Subject: [PATCH] [FIX] http: fix jsonp, session_id no longer exists `session_id` is deprecated, `session.sid` must be used instead. This is similiar to the revision 4033ccc129e5463eb97b5d867a13220c10cd0dc6 --- odoo/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/http.py b/odoo/http.py index e444d5c49c0..86d8028f0da 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -619,7 +619,7 @@ class JsonRequest(WebRequest): # If we use jsonp, that's mean we are called from another host # Some browser (IE and Safari) do no allow third party cookies # We need then to manage http sessions manually. - response['session_id'] = self.session_id + response['session_id'] = self.session.sid mime = 'application/javascript' body = "%s(%s);" % (self.jsonp, json.dumps(response),) else: