@@ -254,6 +254,12 @@ class MeterArchivesLine(models.Model):
|
||||
if diff_ratio > 0.5:
|
||||
rec.is_abnormal = True
|
||||
|
||||
def update_is_abnormal(self):
|
||||
archives_ids = self.env["meter.archives.line"].browse(
|
||||
self._context.get('active_ids', self._context.get('active_id')))
|
||||
for ins in archives_ids:
|
||||
ins._compute_is_abnormal()
|
||||
|
||||
@api.model_create_multi
|
||||
def create(self, vals_list):
|
||||
records = super().create(vals_list)
|
||||
@@ -380,9 +386,6 @@ class MeterArchivesLine(models.Model):
|
||||
else:
|
||||
record.lessee_id = False
|
||||
|
||||
def update_date(self):
|
||||
pass
|
||||
|
||||
def push_task_push_wizard(self):
|
||||
meter_ids = self.env["meter.archives.line"].browse(
|
||||
self._context.get("active_ids", self._context.get("active_id"))
|
||||
|
||||
Reference in New Issue
Block a user