[FIX] small bug in some m2m

bzr revid: nicolas.vanhoren@openerp.com-20120810142253-8ly58vsbqum6o7ng
This commit is contained in:
niv-openerp 2012-08-10 16:22:53 +02:00
parent 01dc1b218b
commit a9c0de5325
1 changed files with 3 additions and 2 deletions

View File

@ -4327,11 +4327,12 @@ instance.web.form.SelectCreatePopup = instance.web.form.AbstractFormPopup.extend
});
},
on_click_element: function(ids) {
var self = this;
this.selected_ids = ids || [];
if(this.selected_ids.length > 0) {
this.$element.find(".oe_selectcreatepopup-search-select").removeAttr('disabled');
self.$buttonpane.find(".oe_selectcreatepopup-search-select").removeAttr('disabled');
} else {
this.$element.find(".oe_selectcreatepopup-search-select").attr('disabled', "disabled");
self.$buttonpane.find(".oe_selectcreatepopup-search-select").attr('disabled', "disabled");
}
},
new_object: function() {