summaryrefslogtreecommitdiff
path: root/addons/web/__init__.py
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2016-05-25 12:18:48 +0200
committerGéry Debongnie <ged@odoo.com>2016-05-30 09:23:07 +0200
commit9c68bc74827864a3c6c21be8ead1b2ed3d122d73 (patch)
treee9dec0618783fbce6d12e89369fa064c63dc886b /addons/web/__init__.py
parent2a8a17024d2b46f3f8837a8672334a7dff3abd1b (diff)
[REF] point_of_sale,web(site): move session info into page source
This commit introduces a mechanism to add information into the session from a different module, without having to fetch it manually with a rpc. This is intended to be used with small pieces of info required at the start of the web client, such as currency informations. To add information to the session, one can simply inherit from ir.http and modify the session_info method.
Diffstat (limited to 'addons/web/__init__.py')
-rw-r--r--addons/web/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/__init__.py b/addons/web/__init__.py
index 71b16f2ea19..b5b73c87bbb 100644
--- a/addons/web/__init__.py
+++ b/addons/web/__init__.py
@@ -6,3 +6,4 @@ sys.modules['openerp.addons.web.http'] = openerp.http
http = openerp.http
import controllers
+import models