summaryrefslogtreecommitdiff
path: root/addons/web/static
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-09-12 15:31:15 +0200
committerXavier Morel <xmo@openerp.com>2011-09-12 15:31:15 +0200
commit05bedcc76aedb734f654dfe2aa17900efe4eb6dc (patch)
tree3ae0a3436ccb4dec92c40444cdca6b61ecfb16b5 /addons/web/static
parenta0e9e6cc474b59da72f4019c32f39050f0ee3a69 (diff)
[FIX] reload the listview's content anytime there are ids in the listview's dataset, not just when the listview was explicitly hidden
otherwise, when the list is not the first/primary view, it needs to appear (and reload itself) even though it was not explicitly hidden lp bug: https://launchpad.net/bugs/847787 fixed bzr revid: xmo@openerp.com-20110912133115-uiwj3fhxfjm441nk
Diffstat (limited to 'addons/web/static')
-rw-r--r--addons/web/static/src/js/list.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/web/static/src/js/list.js b/addons/web/static/src/js/list.js
index ac5f947ff9a..b9df9e8e2df 100644
--- a/addons/web/static/src/js/list.js
+++ b/addons/web/static/src/js/list.js
@@ -349,7 +349,7 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView#
if (this.sidebar) {
this.sidebar.$element.show();
}
- if (this.hidden) {
+ if (!_(this.dataset.ids).isEmpty()) {
this.reload_content();
}
},
@@ -358,7 +358,6 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView#
if (this.sidebar) {
this.sidebar.$element.hide();
}
- this.hidden = true;
},
/**
* Reloads the list view based on the current settings (dataset & al)