Skip to Content
Menu
This question has been flagged

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

    form_widgets.FieldBooleanButton.include({

         // Do something

    });

});



I receive the error:

TypeError: Cannot read property 'include' of undefined
Avatar
Discard

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

Related Posts Replies Views Activity
2
Feb 24
396
1
May 19
3294
0
Aug 24
2765
2
May 23
5449
3
Nov 18
10109