[FIX] list: force to recompute the selection as closing group reset items and would lead to an incorrect count of ids (eg: not hidding sidebar when no item is selected) (opw #599969)

bzr revid: mat@openerp.com-20131028144738-qpanf41yu1i92klh
This commit is contained in:
Martin Trigaux 2013-10-28 15:47:38 +01:00
commit dcf15108f0
1 changed files with 3 additions and 0 deletions

View File

@ -1332,6 +1332,9 @@ instance.web.ListView.Groups = instance.web.Class.extend( /** @lends instance.we
.removeClass('ui-icon-triangle-1-s')
.addClass('ui-icon-triangle-1-e');
child.close();
// force recompute the selection as closing group reset properties
var selection = self.get_selection();
$(self).trigger('selected', [selection.ids, this.records]);
}
});
}