Odoo Help


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.


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

Matthew Watkins
on 8/13/16, 5:40 AM 180 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",






























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)


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