[FIX] don't display group paginators in analysis views
bzr revid: xmo@openerp.com-20111221092921-jiluuxyd2cfebxgt
This commit is contained in:
parent
65627b4359
commit
3c11f25e73
|
@ -1138,7 +1138,12 @@ openerp.web.ListView.Groups = openerp.web.Class.extend( /** @lends openerp.web.L
|
||||||
},
|
},
|
||||||
open: function (point_insertion) {
|
open: function (point_insertion) {
|
||||||
this.render().insertAfter(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 () {
|
close: function () {
|
||||||
this.$row.children().last().empty();
|
this.$row.children().last().empty();
|
||||||
|
|
Loading…
Reference in New Issue