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