self.compute_aggregates();
});
+ this.no_leaf = false;
},
/**
* Retrieves the view's number of records per page (|| section)
if (_.isEmpty(group_by) && !context['group_by_no_leaf']) {
group_by = null;
}
+ this.no_leaf = !!context['group_by_no_leaf'];
this.reload_view(!!group_by, context).then(
$.proxy(this, 'reload_content'));
<th t-att-colspan="columns_count">
<table>
<tr>
- <td t-if="options.action_buttons !== false" class="oe-actions">
+ <td t-if="!no_leaf and options.action_buttons !== false" class="oe-actions">
<button type="button" class="oe-list-add"
t-if="options.addable">
<t t-esc="options.addable"/>
this.prepend($title);
</t>
</t>
-<th t-name="Listview.navigation.button" t-if="options.pager !== false"
+<th t-name="Listview.navigation.button" t-if="!no_leaf and options.pager !== false"
class="oe-list-pager" t-att-colspan="columns_count">
<button type="button" disabled="disabled"
data-pager-action="first">First</button>