我在Cent OS Final 6.4和Python 2.6.6 i = with static ip
中安装了OpenERP 7我使用互联网从外部网络访问它运作良好
但我在网络中访问它会抛出错误
未捕获错误:QWeb2:找不到模板“WebClient”
答案 0 :(得分:0)
现在我使用的版本是odoo 9.0和ubuntu 15.10以及python 2.7.10 我也遇到了这个问题。并在以后发布问题。 使用
ajax.loadXML('/web_editor/static/src/xml/snippets.xml', qweb);
加载这个xml文件,sinppets.xml可能就像这样
<?xml version="1.0" encoding="utf-8"?>
<templates id="template" xml:space="preserve">
<t t-name="web_editor.snippets">
<div id='oe_snippets' class="hidden-xs o_open">
<div id="o_arrow">
<span class="fa fa-angle-double-right fa-1x" style="top: 10px;">
</span>
<div>Insert Blocks</div>
<span class="fa fa-angle-double-right fa-1x" style="bottom: 10px;">
</span>
</div>
<div id="o_left_bar">
<span class='snippets_loading'>Snippets are loading...
</span>
</div>
</div>
</t>
</templates>
var ajax = require('web.ajax');
var core = require('web.core');
var Widget = require('web.Widget');
var qweb = core.qweb;
ajax.loadXML('/web_editor/static/src/xml/snippets.xml', qweb);
var BuildingBlock = Widget.extend({
template: 'web_editor.snippets',
init: function (parent, $editable) {
this._super.apply(this, arguments);
},
start: function() {....
}
});
现在,没有问题。 祝你好运〜