[fix] small typo in m2m

bzr revid: nicolas.vanhoren@openerp.com-20110531131414-em4fcrbwfiqcq6g1
This commit is contained in:
niv-openerp 2011-05-31 15:14:14 +02:00
parent f6d4bdc555
commit fd9c0f359e
1 changed files with 1 additions and 1 deletions

View File

@ -1122,7 +1122,7 @@ openerp.base.form.Many2ManyListView = openerp.base.ListView.extend({
var self = this;
pop.on_select_element.add(function(element_id) {
if(! _.detect(self.dataset.ids, function(x) {return x == element_id;})) {
self.dataset.ids.set_ids([].concat(self.dataset.ids, [element_id]));
self.dataset.set_ids([].concat(self.dataset.ids, [element_id]));
self.reload_content();
}
pop.stop();