@@ -63,6 +63,7 @@ class YuthonOnboardApproval(models.Model):
|
||||
is_office = fields.Boolean(string='是否领用办公物品', default=False)
|
||||
structure_type_id = fields.Many2one('hr.payroll.structure.type', string='工资结构类型')
|
||||
is_annual_salary = fields.Boolean(string="是否年薪")
|
||||
is_union_member = fields.Boolean(string="是否入工会", default=False)
|
||||
urgency_level = fields.Selection([('normal', '普件'), ('urgent', '急件'), ('emergency', '特急件')], string='紧急度',
|
||||
default='normal')
|
||||
active = fields.Boolean('Active', default=True, tracking=True)
|
||||
@@ -213,6 +214,8 @@ class YuthonOnboardApproval(models.Model):
|
||||
'resource_calendar_id': resource_calendar_id.id,
|
||||
'department_id': self.department_id1.id
|
||||
})
|
||||
if self.is_union_member:
|
||||
employee_id.write({'is_membership': True})
|
||||
# employee_id.send_wecom_employee()
|
||||
employee_id.create_user()
|
||||
iots = self.env['attendance.iot'].sudo().search([('company_id', '=', self.company_id.id)])
|
||||
|
||||
@@ -79,6 +79,8 @@
|
||||
<field name="is_annual_salary" nolabel="1"/>
|
||||
<label for="is_office" string="是否领用办公用品"/>
|
||||
<field name="is_office" nolabel="1"/>
|
||||
<label for="is_union_member" string="是否入工会"/>
|
||||
<field name="is_union_member" nolabel="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="department_id1" domain = "[('company_id', '=', company_id)] if is_company else []" options="{'no_create': True}"/>
|
||||
|
||||
Reference in New Issue
Block a user