[IMP] web: add hover description for kanban progressbar sum field

This commit adds a sum field description when hovering the quantity at the end
of a progressbar. The description is the label (translated string
representation) of the field used for the sum.

Task-ID: 2243913
PR odoo/odoo#69380
This commit is contained in:
abd-msyukyu-odoo
2021-06-30 09:51:42 +00:00
parent d287b81a0b
commit f69fa7af8c
2 changed files with 2 additions and 1 deletions
@@ -35,6 +35,7 @@ var KanbanColumnProgressBar = Widget.extend({
__false: 'muted', // color to use for false value
});
this.sumField = columnState.progressBarValues.sum_field;
this.sumFieldLabel = this.sumField ? columnState.fields[this.sumField].string : false;
// Previous progressBar state
var state = options.progressBarStates[this.columnID];
+1 -1
View File
@@ -117,7 +117,7 @@
t-attf-style="width: #{count ? (count * 100 / widget.groupCount) : 0}%;"/>
</t>
</div>
<div class="o_kanban_counter_side"><b><t t-esc="widget.totalCounterValue || 0"/></b></div>
<div class="o_kanban_counter_side" t-att-title="widget.sumFieldLabel || ''"><b><t t-esc="widget.totalCounterValue || 0"/></b></div>
</div>
</t>