From d3ea9038a073d385d9c5b86b9e7c22e6ad30521a Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Sat, 28 Dec 2024 15:34:42 +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_water.py | 6 ++++--
yuthon_property/views/property_meter_water_views.xml | 4 +++-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/yuthon_property/models/property_meter_water.py b/yuthon_property/models/property_meter_water.py
index 021f0e5e9..34d9e467f 100644
--- a/yuthon_property/models/property_meter_water.py
+++ b/yuthon_property/models/property_meter_water.py
@@ -5,7 +5,8 @@ class PropertyMeterWater(models.Model):
_name = 'property.meter.water'
_description = '仪表档案(水)'
- name = fields.Char(string='标题')
+ name = fields.Char(string='仪表编号')
+ unit_number = fields.Char(string='单元编号')
meter_properties = fields.Selection([('household_tables','户表'),('virtual_tables','虚拟表')], string='仪表性质')
installation_location = fields.Char(string='安装位置')
device_number = fields.Char(string='设备编号')
@@ -16,7 +17,8 @@ class PropertyMeterWater(models.Model):
meter_gateways = fields.Char(string='仪表网关') #选择字段 后续优化
is_state = fields.Boolean(string='是否启用')
gauge_type = fields.Char(string='仪表类型', default='水表')
- gauge_coding = fields.Char(string='仪表编码')
+ other = fields.Char(string='其他')
+ type = fields.Selection([('public', '公共'), ('fees', '收费')], string='类型')
gauge_magnification = fields.Float(string='仪表倍率')
maximum_count = fields.Float(string='最大计数')
other_encoding = fields.Char(string='其他编码')
diff --git a/yuthon_property/views/property_meter_water_views.xml b/yuthon_property/views/property_meter_water_views.xml
index a3e480ee5..75efcbbe8 100644
--- a/yuthon_property/views/property_meter_water_views.xml
+++ b/yuthon_property/views/property_meter_water_views.xml
@@ -10,6 +10,7 @@
+
@@ -42,7 +43,8 @@
-
+
+