添加功能
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user