You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ListView.Groups.include({render_dataset: function(){this.view.current_min=this.view.pager&&this.view.pager.state ? this.view.pager.state.current_min: 1;varreturn_val=this._super.apply(this,arguments);returnreturn_val}});ListView.include({do_delete: function(ids){if(!(ids.length&&confirm(_t("Do you really want to remove these records?")))){return;}varself=this;return$.when(this.dataset.unlink(ids)).done(function(){_(ids).each(function(id){self.records.remove(self.records.get(id));});// Hide the table if there is no more record in the datasetif(self.display_nocontent_helper()){self.no_result();}else{if(self.records.length&&self.current_min===1){// Reload the list view if we delete all the records of the first pageself.reload();}elseif(self.records.length&&self.dataset.size()<self.current_min){// Load previous page if the current one is emptyself.pager.previous();}// Reload the list view if we are not on the last pageif(self.current_min+self._limit-1<self.dataset.size()){self.reload();}}self.update_pager(self.dataset);self.compute_aggregates();});},});