Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
6048 Представления

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
2037
5
янв. 22
11502
0
авг. 16
4313
0
мар. 15
3982
0
июл. 25
253