From 15380fd5d22d96a12e44f62cd1a6fe5d72596db5 Mon Sep 17 00:00:00 2001
From: Fabien Meghazi <fme@openerp.com>
Date: Tue, 6 May 2014 18:32:04 +0200
Subject: [PATCH] [ADD] modules global rendering variable

This is temporary

bzr revid: fme@openerp.com-20140506163204-u63n3wv1yv6yohd3
---
 openerp/addons/base/ir/ir_ui_view.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/openerp/addons/base/ir/ir_ui_view.py b/openerp/addons/base/ir/ir_ui_view.py
index 6ecb1fa4a49d..f5ebbe4d63a9 100644
--- a/openerp/addons/base/ir/ir_ui_view.py
+++ b/openerp/addons/base/ir/ir_ui_view.py
@@ -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)
 
-- 
GitLab