[FIX] edi loading, partially revert commit 2226 revid:nicolas.vanhoren@openerp.com-20120217134701-7t3iklv6ndv30hln
bzr revid: al@openerp.com-20120402140020-a4d8nd6rnp625l9w
This commit is contained in:
parent
4d1d43fde3
commit
d2e213844a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue