From 135643f62c39f67f37e4ce2de0a4b3d1f97b0018 Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Tue, 23 May 2023 08:00:58 +0000 Subject: [PATCH] [FIX] web: remove unused code in kanban progress bar This commit removes a non-used, and non-tested method that was mistakenly left on the progress bar hook. closes odoo/odoo#122112 X-original-commit: 04c105fa244ea0a335023393e560153d669a7f2e Signed-off-by: Bruno Boi (boi) --- .../src/views/kanban/progress_bar_hook.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/addons/web/static/src/views/kanban/progress_bar_hook.js b/addons/web/static/src/views/kanban/progress_bar_hook.js index f156e90388d..62c0892542b 100644 --- a/addons/web/static/src/views/kanban/progress_bar_hook.js +++ b/addons/web/static/src/views/kanban/progress_bar_hook.js @@ -218,25 +218,6 @@ class ProgressBarState { } } - async updateCountsArchive(group) { - const groupInfo = this._groupsInfo[group.id]; - for (const bar of groupInfo.bars) { - bar.count = 0; - } - if (this._aggregateFields.length) { - const key = Object.keys(this._aggregateValues).find( - (key) => this._aggregateValues[key][group.groupByField.name] === group.value - ); - for (const sumField of this._aggregateFields) { - this._aggregateValues[key][sumField.name] = 0; - } - } - if (this.activeBars[group.value] && group.list.count === 0) { - // If the selected bar is empty, remove the selection - this.selectBar(group.id, { value: null }); - } - } - async _updateAggregates() { const { context, groupBy, domain, resModel, firstGroupBy } = this.model.root; const fieldsName = this._aggregateFields.map((f) => f.name);