diff --git a/yuthon_property/models/property_meter_archives.py b/yuthon_property/models/property_meter_archives.py index b693a1065..abf5436e9 100644 --- a/yuthon_property/models/property_meter_archives.py +++ b/yuthon_property/models/property_meter_archives.py @@ -281,7 +281,7 @@ class MeterArchivesLine(models.Model): @api.depends('last_read', 'current_read') def _compute_current_meter(self): for record in self: - if record.current_read > record.last_read: + if record.current_read >= record.last_read: record.current_meter = record.current_read - record.last_read else: if record.maximum_count > 0: diff --git a/yuthon_property/models/property_meter_water.py b/yuthon_property/models/property_meter_water.py index 94d24cab5..7dd419d48 100644 --- a/yuthon_property/models/property_meter_water.py +++ b/yuthon_property/models/property_meter_water.py @@ -218,7 +218,7 @@ class MeterWaterLine(models.Model): @api.depends('last_read', 'current_read') def _compute_current_meter(self): for record in self: - if record.current_read > record.last_read: + if record.current_read >= record.last_read: record.current_meter = record.current_read - record.last_read else: if record.maximum_count > 0: