Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
6192 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 24
2227
5
ม.ค. 22
11734
0
ส.ค. 16
4476
0
มี.ค. 15
4187
0
ก.ค. 25
2