mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] do not show date for 'compute on fly' kpi
This commit is contained in:
committed by
Enric Tobella
parent
025c4dae22
commit
44565edb49
@@ -54,7 +54,7 @@ odoo.define('kpi_dashboard.AbstractWidget', function (require) {
|
||||
return;
|
||||
this.fillWidget(values);
|
||||
var item = this.$el.find('[data-bind="value_last_update_display"]');
|
||||
if (item && values.value_last_update !== undefined) {
|
||||
if (item && ! values.compute_on_fly && values.value_last_update !== undefined) {
|
||||
var value = field_utils.parse.datetime(values.value_last_update);
|
||||
item.text(value.clone().add(
|
||||
this.getSession().getTZOffset(value), 'minutes').format(
|
||||
|
||||
Reference in New Issue
Block a user