我正在尝试启动一个小页面,但是它不起作用
我正在使用odoo 10,已经安装了网站模块,但显然会引发一些错误
main.js
odoo.define('gencontratos.main_page',function(require){
"use strict";
var Widget = require('web.Widget');
var RootPage = Widget.extend({
template:'qwebRoot',
start:function(){
console.log(this.$el);
console.log('start----------');
}
})
var page = new RootPage();
//page.setElement('#root');
page.appendTo('#root');
console.log('loaded---------------------');
})
root.xml
<templates id="templates" xml:space="preserve">
<t t-name="qwebRoot">
<div>
qweb
</div>
</t>
</templates>
error: Some modules could not be started web.assets_common.js:2995:302
Missing dependencies:
Array(4) [ "web.web_client", "web_editor.editor", "web_editor.summernote", "web_editor.transcoder" ]
web.assets_common.js:2995:431
Failed modules:
Array [ "gencontratos.main_page" ]
web.assets_common.js:2996:24
Rejected modules:
Array(4) [ "website_portal", "website_payment.website_payment", "website_sale.website_sale_category", "website_sale.website_sale" ]
web.assets_common.js:2997:26
Non loaded modules:
Array(16) [ "web.ChangePassword", "web.Apps", "account.reconciliation", "website_sale.backend", "mail.chat_client_action", "mail.ExtendedChatWindow", "mail.composer", "mail.chat_manager", "mail.Chatter", "mail.systray", … ]
我需要帮助,我正在为此版本启动一个项目,但无法正常工作,我已经两天想解决此问题了,文档没有说任何可以帮助我的内容,并且在Internet上找不到任何可以帮助我的东西