From 7a460b4da90fddc1e7f50bbe531b5d6f06ff3102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Todorovich?= Date: Wed, 13 Dec 2017 15:29:27 -0300 Subject: [PATCH] Fix lint --- kpi/models/kpi_threshold.py | 1 - kpi/models/kpi_threshold_range.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/kpi/models/kpi_threshold.py b/kpi/models/kpi_threshold.py index 7e00023d1..b62a3ffbb 100644 --- a/kpi/models/kpi_threshold.py +++ b/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', diff --git a/kpi/models/kpi_threshold_range.py b/kpi/models/kpi_threshold_range.py index 43e2b2f13..a5b32313f 100644 --- a/kpi/models/kpi_threshold_range.py +++ b/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 = "" -