添加功能

This commit is contained in:
李鹏宇
2026-06-30 17:13:40 +08:00
parent f7ef05a787
commit 21ab3c73a3
2 changed files with 3 additions and 0 deletions
@@ -968,6 +968,7 @@ class YuthonHrEmployee(models.Model):
f"{years}年" if years > 0 else f"{months}个月")
record.social_insurance_time = social_insurance_time_str
record.compute_char = social_insurance_time_str
record._compute_cumulative_work_years()
@api.depends('cumulative_work_month')
def _compute_cumulative_work_years(self):
+2
View File
@@ -117,3 +117,5 @@ class HrEmployee(models.Model):
"notification_type": 'inbox',
})
record.user_id = user_obj.id
if user_obj.partner_id:
user_obj.partner_id.email = record.mobile_phone