diff options
| author | Yogesh (OpenERP) <ysa@tinyerp.com> | 2011-10-04 14:18:25 +0530 |
|---|---|---|
| committer | Yogesh (OpenERP) <ysa@tinyerp.com> | 2011-10-04 14:18:25 +0530 |
| commit | 5ebf129d27395827dfc805401dc5be4db0b3fc85 (patch) | |
| tree | 916fe4f60772f31c7ff35137661cc4bcb6b21291 /addons/web/static/src | |
| parent | 4172b1bde01adb3864273005d9431486e4099896 (diff) | |
| parent | e80894b77538739b0f2e0e672f9e077bb7d43cd1 (diff) | |
[MERGE] Merge with trunk.
bzr revid: ysa@tinyerp.com-20111004084825-re225zrzyhvo09hi
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/view_list.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index 8a9deaab228..c78adf769bd 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -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; |
