Merge pull request !1382 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-01-17 08:33:55 +00:00
committed by Gitee
2 changed files with 7 additions and 0 deletions
@@ -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='出生年月')
@@ -27,9 +27,14 @@
<field name="name" required="1"/>
</h1>
</div>
<group string="流水号:">
<field name="code" readonly="1"/>
</group>
<group col="4" string="基本情况">
<group>
<field name="staff_name" required="1"/>
<field name="users_id" invisible="1"/>
<field name="department_id" invisible="1"/>
<field name="sex"/>
<field name="date_birth"/>
<field name="nation"/>