summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/view_list.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js
index c8d9bbe270e..c78adf769bd 100644
--- a/addons/web/static/src/js/view_list.js
+++ b/addons/web/static/src/js/view_list.js
@@ -505,10 +505,12 @@ 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) {
- this.sidebar.do_unfold();
- } else {
- this.sidebar.do_fold();
+ if (this.sidebar) {
+ if (ids.length) {
+ this.sidebar.do_unfold();
+ } else {
+ this.sidebar.do_fold();
+ }
}
if (!records.length) {
this.compute_aggregates();