[ADD] modules global rendering variable

This is temporary

bzr revid: fme@openerp.com-20140506163204-u63n3wv1yv6yohd3
This commit is contained in:
Fabien Meghazi 2014-05-06 18:32:04 +02:00
parent 0e62b9d8df
commit 15380fd5d2
1 changed files with 5 additions and 0 deletions

View File

@ -882,6 +882,11 @@ class view(osv.osv):
)
qcontext.update(values)
# TODO: remove this as soon as the following branch is merged
# lp:~openerp-dev/openerp-web/trunk-module-closure-style-msh
from openerp.addons.web.controllers.main import module_boot
qcontext['modules'] = simplejson.dumps(module_boot())
def loader(name):
return self.read_template(cr, uid, name, context=context)