[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
This commit is contained in:
Xavier Morel
2011-09-12 15:31:15 +02:00
parent a0e9e6cc47
commit 05bedcc76a
+1 -2
View File
@@ -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)