跳至內容
選單
此問題已被標幟

I'm new to JS coding for Odoo. I'm getting this error message and I can't figure out what I've done wrong. Code is below. Don't know why my instance is undefined. Any ideas?


Error:

Uncaught TypeError: Cannot read property 'include' of undefined


Code:

openerp.context_views = function(instance){

instance.web.ViewManager.include({

switch_mode: function(){

var self = this;

var model = new instance.web.Model("context_views.context_views");

model.call("_get_context", {context: new instance.web.CompoundContext({'view_type': this.view_type})});

this._super();

},

});

};

頭像
捨棄

Did you find any solution to this? I am having the same problem.

相關帖文 回覆 瀏覽次數 活動
1
6月 24
1826
5
1月 22
11197
0
8月 16
4199
0
3月 15
3845
1
6月 25
362