Browse Source

Fix lint

pull/1095/head
Iván Todorovich 7 years ago
parent
commit
7a460b4da9
  1. 1
      kpi/models/kpi_threshold.py
  2. 2
      kpi/models/kpi_threshold_range.py

1
kpi/models/kpi_threshold.py

@ -33,7 +33,6 @@ class KPIThreshold(models.Model):
"Some ranges are invalid or overlapping. "
"Please make sure your ranges do not overlap.")
name = fields.Char('Name', size=50, required=True)
range_ids = fields.Many2many(
'kpi.threshold.range',

2
kpi/models/kpi_threshold_range.py

@ -92,7 +92,6 @@ class KPIThresholdRange(models.Model):
'res.company', 'Company',
default=lambda self: self.env.user.company_id.id)
@api.multi
def _compute_min_value(self):
for obj in self:
@ -165,4 +164,3 @@ class KPIThresholdRange(models.Model):
else:
obj.valid = True
obj.invalid_message = ""
Loading…
Cancel
Save