mirror of https://github.com/OCA/web.git
commit
a274e60e79
|
@ -126,9 +126,13 @@ odoo.define('web_pivot_computed_measure.PivotModel', function (require) {
|
|||
variation: ComparisonUtils.computeVariation(
|
||||
resData, resComparison),
|
||||
};
|
||||
} else {
|
||||
if (dataPoint.__count === 0) {
|
||||
dataPoint[cm.id] = false;
|
||||
} else {
|
||||
dataPoint[cm.id] = py.eval(cm.operation, dataPoint);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue