Odoo Help


Odoo 9: Uncaught TypeError: Cannot read property 'include' of undefined

Matthew Watkins
on 7/11/16, 3:24 PM 767 views

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?


Uncaught TypeError: Cannot read property 'include' of undefined


openerp.context_views = function(instance){


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})});





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

Md. Tanzilul Hasan Khan
on 7/10/17, 12:53 PM

About This Community

This platform 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 Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/11/16, 3:24 PM
Seen: 767 times
Last updated: 7/11/16, 8:29 PM