From bd6b22d74daeefa7cb16cd845ab72fee8bd3ec72 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: Sun, 28 Sep 2025 18:19: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 --- .../models/property_meter_archives.py | 1 - .../models/property_meter_water.py | 5 ++- .../views/property_meter_archives_views.xml | 4 +-- .../views/property_meter_water_views.xml | 5 +-- .../wizard/electric_water_wizard.py | 2 +- .../models/inherit_yuthon_property.py | 34 +++++++++---------- 6 files changed, 21 insertions(+), 30 deletions(-) diff --git a/yuthon_property/models/property_meter_archives.py b/yuthon_property/models/property_meter_archives.py index a0efd56c9..a80147c92 100644 --- a/yuthon_property/models/property_meter_archives.py +++ b/yuthon_property/models/property_meter_archives.py @@ -24,7 +24,6 @@ class PropertyMeterArchives(models.Model): other = fields.Char(string='其他') unit = fields.Float(string='当月单价') archives_state = fields.Selection([('stop', '停用'), ('use', '正常'), ('rent', '出租')], string='状态', compute='_compute_archives_state', store=True, default='use') - is_push = fields.Boolean(string='已推送') start_time = fields.Date(string="安装日期") end_time = fields.Date(string="拆除日期") line_loss = fields.Float(string="线损", default=0.02) diff --git a/yuthon_property/models/property_meter_water.py b/yuthon_property/models/property_meter_water.py index 4d19d94a2..9642be5dc 100644 --- a/yuthon_property/models/property_meter_water.py +++ b/yuthon_property/models/property_meter_water.py @@ -22,7 +22,6 @@ class PropertyMeterWater(models.Model): epitope_values_id = fields.Many2one('yuthon.epitope.values', string='表位置') other = fields.Char(string='其他') unit = fields.Float(string='当月单价') - is_push = fields.Boolean(string='已推送') start_time = fields.Date(string="安装日期") end_time = fields.Date(string="拆除日期") line_loss = fields.Float(string="线损", default=0.05) @@ -139,11 +138,11 @@ class MeterWaterLine(models.Model): last_read = fields.Float(string='上次读数') meter_date = fields.Date(string='任务日期') current_meter = fields.Float(string='本次用量', readonly=True, compute='compute_meter_values') - current_read = fields.Float(string='本次读数') + current_read = fields.Float(string='本次读数', group_operator=None) unit_number = fields.Char(string='单元编号/用途') unit = fields.Float(string='当月单价') receivables = fields.Float(string="应收", compute='_compute_receivables', store=True) - gauge_magnification = fields.Integer(string='仪表倍率', readonly=True, default=1) + gauge_magnification = fields.Integer(string='仪表倍率', readonly=True, default=1, group_operator=None) last_reading_time = fields.Date(string="最后读数时间") type = fields.Selection([('public', '公共'), ('fees', '收费')], string='类型') start_time = fields.Date(string="安装日期") diff --git a/yuthon_property/views/property_meter_archives_views.xml b/yuthon_property/views/property_meter_archives_views.xml index 2f76c64aa..7f990948c 100644 --- a/yuthon_property/views/property_meter_archives_views.xml +++ b/yuthon_property/views/property_meter_archives_views.xml @@ -4,7 +4,7 @@ property.meter.archives.tree property.meter.archives -