[FIX] mis_builder: ignore float_is_zero error

This commit is contained in:
Renzo Meister 2021-06-15 09:17:38 +02:00 committed by OCA2FC Migrator Bot
parent fdfeedc5aa
commit e010e48f86

View File

@ -73,8 +73,11 @@ 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
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