I am trying to override one of the default ListView functions, but it does not seem to work, and we do not fall into the function body. Any tips?
instance.web.ListView.extend({
do_search: function (domain, context, group_by) {
console.log("We need to go deeper")
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;
if (this.pager && this.grouped) {
this.pager.do_hide();
}
this.grouped = false;
return this.reload_content();
}
})();
source
share