[FIX] http.py: session id is `sid` attribute
authorChristophe Simonis <chs@odoo.com>
Mon, 1 Sep 2014 13:49:26 +0000 (15:49 +0200)
committerChristophe Simonis <chs@odoo.com>
Mon, 1 Sep 2014 13:49:26 +0000 (15:49 +0200)
openerp/http.py

index 9cd0bfa..281b239 100644 (file)
@@ -298,9 +298,9 @@ class WebRequest(object):
 
         .. deprecated:: 8.0
 
-            Use the ``id`` attribute on :attr:`.session`
+            Use the ``sid`` attribute on :attr:`.session`
         """
-        return self.session.id
+        return self.session.sid
 
     @property
     def registry(self):