From 43a1e77a26e79342aa6c3da69011aa5e15c5abfd Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Fri, 17 Jan 2025 16:33:32 +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_hr_employee_approval/models/yuthon_message_login.py | 2 ++
.../views/yuthon_message_login_views.xml | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/yuthon_hr_employee_approval/models/yuthon_message_login.py b/yuthon_hr_employee_approval/models/yuthon_message_login.py
index 929a5a14a..5f96f6188 100644
--- a/yuthon_hr_employee_approval/models/yuthon_message_login.py
+++ b/yuthon_hr_employee_approval/models/yuthon_message_login.py
@@ -27,6 +27,8 @@ class YuthonMessageLogin(models.Model):
name = fields.Char(string='标题', default="人员信息登记表")
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code('yuthon_message_login_code'))
+ users_id = fields.Many2one('res.users', string="申请人", default=lambda self: self.env.user.id)
+ department_id = fields.Many2one('hr.department', string='部门')
staff_name = fields.Char(string='姓名')
sex = fields.Selection([('male', '男'), ('female', '女')], string='性别')
date_birth = fields.Date(string='出生年月')
diff --git a/yuthon_hr_employee_approval/views/yuthon_message_login_views.xml b/yuthon_hr_employee_approval/views/yuthon_message_login_views.xml
index ed7b0e9a1..0cc05b2b8 100644
--- a/yuthon_hr_employee_approval/views/yuthon_message_login_views.xml
+++ b/yuthon_hr_employee_approval/views/yuthon_message_login_views.xml
@@ -27,9 +27,14 @@
+
+
+
+
+