From b91faf0d4b96acb1a38e7e707a0b2cf59a6b60d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Thu, 16 Oct 2025 10:57:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_property/models/property_meter_archives.py | 2 +- yuthon_property/models/property_meter_water.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: