summaryrefslogtreecommitdiff
path: root/addons/web/controllers/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/controllers/main.py')
-rw-r--r--addons/web/controllers/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index c159929ead0..b1fc438ede0 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -104,8 +104,7 @@ html_template = """<!DOCTYPE html>
<script type="text/javascript">
$(function() {
var s = new openerp.init(%(modules)s);
- var wc = new s.web.WebClient();
- wc.appendTo($(document.body));
+ %(init)s
});
</script>
</head>
@@ -323,6 +322,7 @@ class WebClient(openerpweb.Controller):
'js': js,
'css': css,
'modules': simplejson.dumps(self.server_wide_modules(req)),
+ 'init': 'var wc = new s.web.WebClient();wc.appendTo($(document.body));'
}
return r