Merge PR #1700 into 12.0

Signed-off-by pedrobaeza
pull/1628/head
OCA-git-bot 2020-12-02 08:54:54 +00:00
commit a274e60e79
1 changed files with 5 additions and 1 deletions

View File

@ -127,7 +127,11 @@ odoo.define('web_pivot_computed_measure.PivotModel', function (require) {
resData, resComparison),
};
} else {
dataPoint[cm.id] = py.eval(cm.operation, dataPoint);
if (dataPoint.__count === 0) {
dataPoint[cm.id] = false;
} else {
dataPoint[cm.id] = py.eval(cm.operation, dataPoint);
}
}
});
},