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.
10 lines
189 B
Python
10 lines
189 B
Python
import sys
|
|
|
|
# Mock deprecated openerp.addons.web.http module
|
|
import openerp.http
|
|
sys.modules['openerp.addons.web.http'] = openerp.http
|
|
http = openerp.http
|
|
|
|
import controllers
|
|
import models
|