From bbcc9c3135a1b4e1b039e0151ae863a43261336a Mon Sep 17 00:00:00 2001 From: Cesar Lage Date: Thu, 5 May 2016 17:31:34 -0400 Subject: [PATCH] [IMP] restore return super's result in start function --- web_widget_radio_tree/static/src/js/widget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_widget_radio_tree/static/src/js/widget.js b/web_widget_radio_tree/static/src/js/widget.js index 3b436447..c0d41658 100644 --- a/web_widget_radio_tree/static/src/js/widget.js +++ b/web_widget_radio_tree/static/src/js/widget.js @@ -20,7 +20,7 @@ openerp.web_widget_radio_tree = function (instance) { instance.web.form.RadioTree = instance.web.form.FieldBoolean.extend({ template: 'RadioTree', start: function() { - this._super.apply(this, arguments); + var _super = this._super.apply(this, arguments); this.$checkbox = $('input', this.$el); var radio_name = this.getParent().model + '_' + this.$checkbox[0].name; this.$checkbox.attr('name', radio_name); @@ -30,6 +30,7 @@ openerp.web_widget_radio_tree = function (instance) { self.clean_radio_in_records(); this.internal_set_value(true); }, this)); + return _super; }, click_disabled_boolean: function(){ var $disabled = this.$el.find('input[type=radio]:disabled');