diff --git a/yuthon_property/models/property_meter_archives.py b/yuthon_property/models/property_meter_archives.py index 333c7ce09..e7b5d5cd6 100644 --- a/yuthon_property/models/property_meter_archives.py +++ b/yuthon_property/models/property_meter_archives.py @@ -310,7 +310,7 @@ class MeterArchivesLine(models.Model): i.last_meter = i.meter_date i.current_meter = 0 - @api.onchagne('current_read', 'last_read', 'maximum_count') + @api.onchange('current_read', 'last_read', 'maximum_count') def onchange_current_meter(self): for record in self: if record.last_read is not None and record.current_read is not None and record.last_read > 0: