From 05bedcc76aedb734f654dfe2aa17900efe4eb6dc Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 12 Sep 2011 15:31:15 +0200 Subject: [PATCH] [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 --- addons/web/static/src/js/list.js | 3 +-- 1 file changed, 1 insertion(+), 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)