[merge] [FIX] FieldBoolean: allow click event to propagate the value to the model in all cases

bzr revid: fme@openerp.com-20111024082338-anop000q7iy0o2mr
This commit is contained in:
Fabien Meghazi
2011-10-24 10:23:38 +02:00
+1 -5
View File
@@ -1419,11 +1419,7 @@ openerp.web.form.FieldBoolean = openerp.web.form.Field.extend({
start: function() {
var self = this;
this._super.apply(this, arguments);
this.$element.find('input').click(function() {
if ($(this).is(':checked') != self.value) {
self.on_ui_change();
}
});
this.$element.find('input').click(self.on_ui_change);
},
set_value: function(value) {
this._super.apply(this, arguments);