summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2012-04-02 16:00:20 +0200
committerAntony Lesuisse <al@openerp.com>2012-04-02 16:00:20 +0200
commitd2e213844a67f15e0990cb3b02484daf712eefb1 (patch)
treeb65711d73f0f7201e6c19278e5d509b6916dc0d5 /addons
parent4d1d43fde3840432777c1492475a8f833588d097 (diff)
[FIX] edi loading, partially revert commit 2226 revid:nicolas.vanhoren@openerp.com-20120217134701-7t3iklv6ndv30hln
bzr revid: al@openerp.com-20120402140020-a4d8nd6rnp625l9w
Diffstat (limited to 'addons')
-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