[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) <boi@odoo.com>
This commit is contained in:
Jorge Pinna Puissant
2023-05-23 18:02:15 +02:00
parent 6feb1ff1f2
commit 135643f62c
@@ -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);