I'm trying to redefine one of default ListView functions, but it seems not working, and we aren't get into function body. Any advices?
instance.web.ListView.extend({
do_search: function (domain, context, group_by) {
console.log("We need to go deeper") // We aren't get here
this.current_min = 1;
this.groups.datagroup = new DataGroup(
this, this.model, domain, context, group_by);
this.groups.datagroup.sort = this.dataset._sort;
if (_.isEmpty(group_by) && !context['group_by_no_leaf']) {
group_by = null;
}
this.no_leaf = !!context['group_by_no_leaf'];
this.grouped = !!group_by;
// Hide the pager in grouped mode
if (this.pager && this.grouped) {
this.pager.do_hide();
}
this.grouped = false;
return this.reload_content();
}
})();