[FIX] don't display group paginators in analysis views

bzr revid: xmo@openerp.com-20111221092921-jiluuxyd2cfebxgt
This commit is contained in:
Xavier Morel 2011-12-21 10:29:21 +01:00
parent 65627b4359
commit 3c11f25e73
1 changed files with 6 additions and 1 deletions

View File

@ -1138,7 +1138,12 @@ openerp.web.ListView.Groups = openerp.web.Class.extend( /** @lends openerp.web.L
},
open: function (point_insertion) {
this.render().insertAfter(point_insertion);
this.make_paginator();
var no_subgroups = _(this.datagroup.group_by).isEmpty(),
records_terminated = !this.datagroup.context['group_by_no_leaf'];
if (no_subgroups && records_terminated) {
this.make_paginator();
}
},
close: function () {
this.$row.children().last().empty();