projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ad2ecfd
)
[FIX] display pager in listview after ungrouping (web)
author
Géry Debongnie
<ged@odoo.com>
Wed, 3 Dec 2014 08:46:21 +0000
(09:46 +0100)
committer
Géry Debongnie
<ged@odoo.com>
Wed, 3 Dec 2014 08:46:21 +0000
(09:46 +0100)
list view hide the pager when it is grouped, but it should show it again
after it is ungrouped.
addons/web/static/src/js/view_list.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/view_list.js
b/addons/web/static/src/js/view_list.js
index
31dee29
..
97b3fde
100644
(file)
--- a/
addons/web/static/src/js/view_list.js
+++ b/
addons/web/static/src/js/view_list.js
@@
-511,6
+511,9
@@
instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
self.$el.find('.oe_list_record_selector').prop('checked', false);
this.records.reset();
var reloaded = $.Deferred();
+ reloaded.then(function () {
+ if (!self.grouped) self.$pager.show();
+ });
this.$el.find('.oe_list_content').append(
this.groups.render(function () {
if (self.dataset.index == null) {