From aba73301c53e81d5ed65c2d153eb5e162d801a75 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, 4 Nov 2025 16:09:27 +0800
Subject: [PATCH 1/2] =?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_maintain/models/processing_order_approval.py | 1 +
yuthon_maintain/models/property_device_repair.py | 1 +
yuthon_maintain/models/property_report_repair.py | 2 +-
yuthon_maintain/views/processing_order_approval_views.xml | 2 ++
yuthon_maintain/views/property_device_repair_views.xml | 5 ++++-
yuthon_maintain/views/property_report_repair.xml | 6 ++++--
6 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/yuthon_maintain/models/processing_order_approval.py b/yuthon_maintain/models/processing_order_approval.py
index bb3c5f49a..0cae16270 100644
--- a/yuthon_maintain/models/processing_order_approval.py
+++ b/yuthon_maintain/models/processing_order_approval.py
@@ -61,6 +61,7 @@ class ProcessingOrderApproval(models.Model):
fee_description = fields.Text(string="费用说明")
follow_up = fields.Text(string="后续情况")
+ create_time = fields.Date(string="创建日期", default=fields.Datetime.now)
def _get_default_name_title(self):
return self._description if self._description else self._name
diff --git a/yuthon_maintain/models/property_device_repair.py b/yuthon_maintain/models/property_device_repair.py
index db1e0a224..f61101e7f 100644
--- a/yuthon_maintain/models/property_device_repair.py
+++ b/yuthon_maintain/models/property_device_repair.py
@@ -20,6 +20,7 @@ class PropertyDeviceRelief(models.Model):
start_date = fields.Date(string="开始日期")
remake = fields.Text(string="备注")
report_state = fields.Selection([('to', '待处理'), ('done', '已处理')], string='状态', default='to')
+ create_time = fields.Date(string="创建日期", default=fields.Datetime.now)
urgency_level = fields.Selection([('normal', '普件'), ('urgent', '急件'), ('emergency', '特急件')], string='紧急度',
default='normal')
documents_ids = fields.Many2many('ir.attachment', string="附件")
diff --git a/yuthon_maintain/models/property_report_repair.py b/yuthon_maintain/models/property_report_repair.py
index e82989da7..4a01f4ac4 100644
--- a/yuthon_maintain/models/property_report_repair.py
+++ b/yuthon_maintain/models/property_report_repair.py
@@ -20,7 +20,6 @@ class PropertyRentRelief(models.Model):
contact = fields.Char(string="联系人")
phone = fields.Char( string="联系电话")
leader_id = fields.Many2one('res.users', string="负责人")
- start_date = fields.Date(string="开始日期")
types_repairs = fields.Selection([('hydropower', '水电维修'), ('building', '门窗维修'), ('other', '其他维修')], string='维修类型')
problem_description = fields.Text(string="问题描述")
remake = fields.Text(string="备注")
@@ -32,6 +31,7 @@ class PropertyRentRelief(models.Model):
work_end = fields.Boolean(string="结束")
self_users_ids = fields.Many2many('res.users', string="当前经办人",
default=lambda self: [(6, 0, [self.env.user.id])])
+ create_time = fields.Date(string="创建日期", default=fields.Datetime.now)
def _get_default_name_title(self):
return self._description if self._description else self._name
diff --git a/yuthon_maintain/views/processing_order_approval_views.xml b/yuthon_maintain/views/processing_order_approval_views.xml
index 0b695e10d..7cc5a17d4 100644
--- a/yuthon_maintain/views/processing_order_approval_views.xml
+++ b/yuthon_maintain/views/processing_order_approval_views.xml
@@ -10,6 +10,8 @@
+
+
diff --git a/yuthon_maintain/views/property_device_repair_views.xml b/yuthon_maintain/views/property_device_repair_views.xml
index deea6f496..bc2d8114c 100644
--- a/yuthon_maintain/views/property_device_repair_views.xml
+++ b/yuthon_maintain/views/property_device_repair_views.xml
@@ -6,8 +6,11 @@
+
-
+
+
+
diff --git a/yuthon_maintain/views/property_report_repair.xml b/yuthon_maintain/views/property_report_repair.xml
index b85173391..fe4df8061 100644
--- a/yuthon_maintain/views/property_report_repair.xml
+++ b/yuthon_maintain/views/property_report_repair.xml
@@ -6,10 +6,13 @@
+
+
-
+
+
@@ -58,7 +61,6 @@
-
From 9fba9333179e8895ea1e82afa4a85baea3f54132 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, 4 Nov 2025 16:09:46 +0800
Subject: [PATCH 2/2] =?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_maintain/views/property_device_repair_views.xml | 2 +-
yuthon_maintain/views/property_report_repair.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/yuthon_maintain/views/property_device_repair_views.xml b/yuthon_maintain/views/property_device_repair_views.xml
index bc2d8114c..f5584ffec 100644
--- a/yuthon_maintain/views/property_device_repair_views.xml
+++ b/yuthon_maintain/views/property_device_repair_views.xml
@@ -10,7 +10,7 @@
-
+
diff --git a/yuthon_maintain/views/property_report_repair.xml b/yuthon_maintain/views/property_report_repair.xml
index fe4df8061..cd7d04928 100644
--- a/yuthon_maintain/views/property_report_repair.xml
+++ b/yuthon_maintain/views/property_report_repair.xml
@@ -12,7 +12,7 @@
-
+