[FIX] change in listview for sidebar.

bzr revid: kbh@bde-desktop-20111003060239-l7bwy55n8t9fkz66
This commit is contained in:
kbh 2011-10-03 11:32:39 +05:30
parent 3a12aa8d7c
commit fdfe102cc4
1 changed files with 5 additions and 1 deletions

View File

@ -505,7 +505,11 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView#
do_select: function (ids, records) {
this.$element.find('.oe-list-delete')
.attr('disabled', !ids.length);
if(ids.length > 0) {
this.sidebar.do_unfold();
} else {
this.sidebar.do_fold();
}
if (!records.length) {
this.compute_aggregates();
return;