Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
pengyuthon
2026-01-12 12:16:47 +08:00
3 changed files with 29 additions and 2 deletions
@@ -33,6 +33,8 @@ class YuthonLeavingApproval(models.Model):
urgency_level = fields.Selection([('normal', '普件'), ('urgent', '急件'), ('emergency', '特急件')], string='紧急度',default='normal')
work_end = fields.Boolean(string="结束")
is_execution = fields.Boolean(string="定时任务是否已执行", default=False)
resignation = fields.Text(string="离职体检情况", default=False)
salary_line_ids = fields.One2many('leaving.salary.line', 'leaving_id', string="薪资计算")
def _get_default_name_title(self):
return self._description if self._description else self._name
@@ -64,4 +66,14 @@ class YuthonLeavingApproval(models.Model):
class HrJobType(models.Model):
_name = "hr.job.type"
name = fields.Char(string="类别名称")
name = fields.Char(string="类别名称")
class LeavingSalaryLine(models.Model):
_name = "leaving.salary.line"
leaving_id = fields.Many2one('yuthon.leaving.approval', string="关联离职申请")
start_date = fields.Date(string="开始日期")
end_date = fields.Date(string="结束日期")
salary = fields.Float(string="实发工资")
remake = fields.Char(string="备注")
@@ -57,4 +57,5 @@ access_awards_line, awards_line,model_awards_line,base.group_user,1,1,1,1
access_yuthon_employee_add,yuthon_employee_add,model_yuthon_employee_add,base.group_user,1,1,1,1
access_yuthon_pre_examination,yuthon_pre_examination,model_yuthon_pre_examination,base.group_user,1,1,1,1
access_yuthon_service_type,yuthon_service_type,model_yuthon_service_type,base.group_user,1,1,1,1
access_yuthon_contract_type,yuthon_contract_type,model_yuthon_contract_type,base.group_user,1,1,1,1
access_yuthon_contract_type,yuthon_contract_type,model_yuthon_contract_type,base.group_user,1,1,1,1
access_leaving_salary_line,leaving_salary_line,model_leaving_salary_line,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
57 access_yuthon_employee_add yuthon_employee_add model_yuthon_employee_add base.group_user 1 1 1 1
58 access_yuthon_pre_examination yuthon_pre_examination model_yuthon_pre_examination base.group_user 1 1 1 1
59 access_yuthon_service_type yuthon_service_type model_yuthon_service_type base.group_user 1 1 1 1
60 access_yuthon_contract_type yuthon_contract_type model_yuthon_contract_type base.group_user 1 1 1 1
61 access_leaving_salary_line leaving_salary_line model_leaving_salary_line base.group_user 1 1 1 1
@@ -97,6 +97,20 @@
</tree>
</field>
</page>
<page string="工资条">
<field name="salary_line_ids">
<tree editable="bottom">
<field name="leaving_id" column_invisible="1"/>
<field name="start_date"/>
<field name="end_date"/>
<field name="salary"/>
<field name="remake"/>
</tree>
</field>
</page>
<page string="离职体检情况">
<field name="resignation"/>
</page>
</notebook>
</sheet>
</form>