diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-09-27 12:27:47 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-09-30 14:08:19 +0200 |
| commit | ae5c6ce344247da704ce47fe0fec9a3450abeab7 (patch) | |
| tree | 4bb3d64ae838152ea93057d7200dbec3f42b257e /odoo/http.py | |
| parent | 2432a1296a55dfe9894455d33a0a0cb546cb450d (diff) | |
[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
Diffstat (limited to 'odoo/http.py')
| -rw-r--r-- | odoo/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
