From ce99de9ab4383160fb2fb8ed476c2a0730e7d313 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: Tue, 25 Nov 2025 09:30:51 +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 c74f46910..d42c2b014 100644 --- a/yuthon_property/models/property_meter_archives.py +++ b/yuthon_property/models/property_meter_archives.py @@ -229,7 +229,7 @@ class MeterArchivesLine(models.Model): epitope_values_id = fields.Many2one("yuthon.epitope.values", string="表位置") lessee_id = fields.Many2one("property.tenant.information", string="承租方", store=True) yuthon_property_ids = fields.Many2many("yuthon.property", string="物业信息") - last_meter = fields.Date(string="上次抄表日期", compute="_compute_last") + last_meter = fields.Date(string="上次抄表日期", compute="_compute_last", store=True) last_dosage = fields.Float(string="上次用量", store=True, group_operator=None, compute="_compute_last") initial_value = fields.Float(string="初始读数") last_read = fields.Float(string="上次读数", store=True, group_operator=None, compute="_compute_last") diff --git a/yuthon_property/models/property_meter_water.py b/yuthon_property/models/property_meter_water.py index 8b5a26479..5bfdba490 100644 --- a/yuthon_property/models/property_meter_water.py +++ b/yuthon_property/models/property_meter_water.py @@ -208,7 +208,7 @@ class MeterWaterLine(models.Model): epitope_values_id = fields.Many2one("yuthon.epitope.values", string="表位置") lessee_id = fields.Many2one("property.tenant.information", string="承租方") yuthon_property_ids = fields.Many2many("yuthon.property", string="物业信息") - last_meter = fields.Date(string="上次抄表日期", compute="_compute_last") + last_meter = fields.Date(string="上次抄表日期", compute="_compute_last", store=True) last_dosage = fields.Float(string="上次用量", store=True, group_operator=None, compute="_compute_last") last_read = fields.Float(string="上次读数", group_operator=None, compute="_compute_last") meter_date = fields.Date(string="任务日期")