From feb7768a6b16d43e505fa4176cd306fc4cb6ba1c Mon Sep 17 00:00:00 2001
From: zhouzhou <123@qq.com>
Date: Fri, 11 Oct 2024 09:25:14 +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_property_approval/data/sale_renting_code_data.xml | 6 ++++++
yuthon_property_approval/models/property_renamed.py | 1 +
2 files changed, 7 insertions(+)
diff --git a/yuthon_property_approval/data/sale_renting_code_data.xml b/yuthon_property_approval/data/sale_renting_code_data.xml
index 05554499f..46dcd8d24 100644
--- a/yuthon_property_approval/data/sale_renting_code_data.xml
+++ b/yuthon_property_approval/data/sale_renting_code_data.xml
@@ -202,4 +202,10 @@
GS%(y)s%(month)s%(day)s
3
+
+
+ 更名编号
+ property_renamed_code
+ %(y)s%(month)s%(day)s
+
\ No newline at end of file
diff --git a/yuthon_property_approval/models/property_renamed.py b/yuthon_property_approval/models/property_renamed.py
index 1d9d3e6d6..36da926ff 100644
--- a/yuthon_property_approval/models/property_renamed.py
+++ b/yuthon_property_approval/models/property_renamed.py
@@ -11,6 +11,7 @@ class PropertyRenamed(models.Model):
name = fields.Char(string='标题')
issue_text = fields.Html(string="正文")
+ code = fields.Char(string="编号", default=lambda self: self.env['ir.sequence'].next_by_code('property_renamed_code'))
# 附件
renaming_materials_ids = fields.Many2many('documents.document', string='更名材料')
From 6bd893d3a44d53271ae571417458724d3195a6b3 Mon Sep 17 00:00:00 2001
From: zhouzhou <123@qq.com>
Date: Fri, 11 Oct 2024 10:47:31 +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_work_brand/views/hr_menus.xml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/yuthon_work_brand/views/hr_menus.xml b/yuthon_work_brand/views/hr_menus.xml
index ca2b8cf0f..e1893fd0d 100644
--- a/yuthon_work_brand/views/hr_menus.xml
+++ b/yuthon_work_brand/views/hr_menus.xml
@@ -446,7 +446,8 @@
+ sequence="2"
+ action="yuthon_hr_attendance.attendance_iot_action"/>