[MERGE] Merge with trunk.

bzr revid: ysa@tinyerp.com-20111004084825-re225zrzyhvo09hi
This commit is contained in:
Yogesh (OpenERP) 2011-10-04 14:18:25 +05:30
commit 5ebf129d27
1 changed files with 7 additions and 1 deletions

View File

@ -505,7 +505,13 @@ 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 (this.sidebar) {
if (ids.length) {
this.sidebar.do_unfold();
} else {
this.sidebar.do_fold();
}
}
if (!records.length) {
this.compute_aggregates();
return;