[IMP] use this.proxy instead of _.bind in the click event

This commit is contained in:
Cesar Lage
2016-06-06 10:52:56 -04:00
parent b645038211
commit cc7dc5c924

View File

@@ -24,7 +24,7 @@ openerp.web_widget_radio_tree = function (instance) {
this.$checkbox.attr('name', radio_name);
var self = this;
this.$el.click(_.bind(function() {
this.$el.click(this.proxy(function() {
self.clean_radio_in_records();
this.internal_set_value(true);
}, this));