[MERGE] Merge with trunk.
bzr revid: ysa@tinyerp.com-20111004084825-re225zrzyhvo09hi
This commit is contained in:
commit
5ebf129d27
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue