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.


v9: How to inherit FieldBooleanButton?

Matthew Watkins
on 8/29/16, 2:16 PM 60 views

In version 9, I am trying to inherit the FieldBooleanButton object from web.form_widgets. It's telling me the object is undefined. I have no idea why. Here's my code:

odoo.define("custom_boolean_button.FieldBooleanButton", function(require) {

    "use strict";

    var form_widgets = require("web.form_widgets");


         // Do something



I receive the error:

TypeError: Cannot read property 'include' of undefined

Post bug here https://github.com/odoo/odoo/issues/new, official guys supports you.

on 9/6/16, 8:46 AM

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/29/16, 2:16 PM
Seen: 60 times
Last updated: 8/30/16, 1:49 AM