Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Odoo 9: Why can't I create an instance of web.TreeView?

By
Matthew Watkins
on 8/13/16, 5:40 AM 249 views

When I try to create an instance of TreeView, the program hangs. I'm using the following code:

openerp.foo = function(instance){

var QWeb = openerp.web.qweb;
_t = instance.web._t;

    var bar = instance.web.TreeView.include({
        // do something 
    });
};

can put anything inside the curly brackets and it hangs. I can do it for ListView and ViewManager and anything else just fine. It's just TreeView that causes problems.


Here's the error:

web.assets_common.js:2523 error: Some modules could not be started

Failed modules: ["web.web_client"]

Non loaded modules: ["web.ChangePassword",

"base.apps",

"account.reconciliation",

"im_odoo_support.OdooSupport",

"__job1",

"mail.chat_client_action",

"mail.composer",

"mail.chat_manager",

"mail.Chatter",

"mail.systray",

"mail.window_manager",

"mail.ExtendedChatWindow",

"mail_tip.mail_tip",

"web.planner",

"web_settings_dashboard"]0:

"web.ChangePassword"1:

"base.apps"2:

"account.reconciliation"3:

"im_odoo_support.OdooSupport"4:

"__job1"5:

"mail.chat_client_action"6:

"mail.composer"7:

"mail.chat_manager"8:

"mail.Chatter"9:

"mail.systray"10:

"mail.window_manager"11:

"mail.ExtendedChatWindow"12:

"mail_tip.mail_tip"13:

"web.planner"14:

"web_settings_dashboard"

length: 15__proto__: Array[0]

concat: concat()

constructor: Array()

copyWithin: copyWithin()

entries: entries()

every: every()

fill: fill()

filter: filter()

find: find()

findIndex: findIndex()

forEach: forEach()

includes: includes()

indexOf: indexOf()

join: join()

keys: keys()

lastIndexOf: lastIndexOf()

length: 0

map: map()

pop: pop()

push: push()

reduce: reduce()

reduceRight: reduceRight()

reverse: reverse()

shift: shift()

slice: slice()

some: some()

sort: sort()

splice: splice()

toLocaleString: toLocaleString()

toString: toString()

unshift: unshift()

Symbol(Symbol.iterator): values()

Symbol(Symbol.unscopables): Object

__proto__: Object

log @ web.assets_common.js:2523

(anonymous function) @ web.assets_common.js:2530

(anonymous function) @ web.assets_common.js:650

fire @ web.assets_common.js:644

add @ web.assets_common.js:645

(anonymous function) @ web.assets_common.js:650

each @ web.assets_common.js:473

(anonymous function) @ web.assets_common.js:650

Deferred @ web.assets_common.js:651

then @ web.assets_common.js:650

(anonymous function) @ web.assets_common.js:2530

(anonymous function) @ web.assets_common.js:44

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/13/16, 5:40 AM
Seen: 249 times
Last updated: 8/13/16, 6:23 AM