From a6f8c9c307197047b0dab51bba7452166eeab1c8 Mon Sep 17 00:00:00 2001 From: Renzo Meister Date: Tue, 15 Jun 2021 09:17:38 +0200 Subject: [PATCH] [FIX] mis_builder: ignore float_is_zero error --- mis_builder/models/kpimatrix.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mis_builder/models/kpimatrix.py b/mis_builder/models/kpimatrix.py index a626a9d..1545285 100644 --- a/mis_builder/models/kpimatrix.py +++ b/mis_builder/models/kpimatrix.py @@ -73,7 +73,10 @@ class KpiMatrixRow(object): def is_empty(self): for cell in self.iter_cells(): dp = cell and cell.row.kpi.env.user.company_id.currency_id.decimal_places or 6 - if cell and not float_is_zero(cell.val, dp) and cell.val not in (AccountingNone, None): + try: + if cell and not float_is_zero(cell.val, dp) and cell.val not in (AccountingNone, None): + return False + except Exception: return False return True