[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user