mirror of
https://gitlab.com/flectra-community/mis-builder.git
synced 2024-12-23 12:51:46 +00:00
[FIX] mis_builder: ignore float_is_zero error
This commit is contained in:
parent
5b36489d85
commit
a6f8c9c307
@ -73,8 +73,11 @@ class KpiMatrixRow(object):
|
|||||||
def is_empty(self):
|
def is_empty(self):
|
||||||
for cell in self.iter_cells():
|
for cell in self.iter_cells():
|
||||||
dp = cell and cell.row.kpi.env.user.company_id.currency_id.decimal_places or 6
|
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):
|
if cell and not float_is_zero(cell.val, dp) and cell.val not in (AccountingNone, None):
|
||||||
return False
|
return False
|
||||||
|
except Exception:
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user