[fix] forgot on_ui_change in m2m

bzr revid: nicolas.vanhoren@openerp.com-20110701101349-l1n2o0y59ucywm13
This commit is contained in:
niv-openerp 2011-07-01 12:13:49 +02:00
parent f1ea42e230
commit 3c4330da9c
1 changed files with 1 additions and 0 deletions

View File

@ -1660,6 +1660,7 @@ openerp.base.form.Many2ManyListView = openerp.base.ListView.extend({
_.each(element_ids, function(element_id) {
if(! _.detect(self.dataset.ids, function(x) {return x == element_id;})) {
self.dataset.set_ids([].concat(self.dataset.ids, [element_id]));
self.m2m_field.on_ui_change();
self.reload_content();
}
});