添加功能

This commit is contained in:
李鹏宇
2025-09-26 18:16:33 +08:00
parent d067ae2a6f
commit fa9beb962a
@@ -100,7 +100,7 @@ class YuthonHrEmployee(models.Model):
job_lv = fields.Char(string="专业技术/技能等级(劳动局)")
job_qualification_date = fields.Date(string="职业资格/考取日期")
job_lv_change = fields.Char(string="职级变动")
move_note_date = fields.Date(string="异动情况/移动日期")
move_note_date = fields.Text(string="异动情况/移动日期")
# 紧急
emergency_contacts_name = fields.Char(string="称谓")
# 其他
@@ -239,6 +239,14 @@ class YuthonHrEmployee(models.Model):
recovery_sick_leave = fields.Float(string='病假(出院恢复期)')
exam_leave = fields.Integer(string='考试假')
marital = fields.Selection([
('single', '未婚'),
('married', 'Married'),
('cohabitant', 'Legal Cohabitant'),
('widower', 'Widower'),
('divorced', 'Divorced')
], string='Marital Status', groups="hr.group_hr_user", default='single', tracking=True)
def update_social_base(self):
current_year = fields.Date.today().year
group_company = self.env['res.company'].search([('name', '=', '集团本部')], limit=1)