diff --git a/yuthon_hr_employee/models/inherit_hr_job.py b/yuthon_hr_employee/models/inherit_hr_job.py index 14a431aa0..d0edb3630 100644 --- a/yuthon_hr_employee/models/inherit_hr_job.py +++ b/yuthon_hr_employee/models/inherit_hr_job.py @@ -24,6 +24,7 @@ class HrJob(models.Model): establishment_quotas = fields.Integer(string="编制定员") job_personnel_ids = fields.Many2many('hr.employee', string='在岗人员') recruitment_employees = fields.Integer(string="招聘人数") + email = fields.Char(string='邮箱') job_personnel = fields.Text(string="在岗人员", compute='_compute_job_personnel') remarks = fields.Text(string="备注") is_recruitment_status = fields.Boolean(string="招聘状态") diff --git a/yuthon_hr_employee/views/inherit_hr_applicant_views.xml b/yuthon_hr_employee/views/inherit_hr_applicant_views.xml index 7fdee7e58..898163717 100644 --- a/yuthon_hr_employee/views/inherit_hr_applicant_views.xml +++ b/yuthon_hr_employee/views/inherit_hr_applicant_views.xml @@ -63,9 +63,9 @@ 1 - - 1 - + + + 1 diff --git a/yuthon_hr_employee/views/inherit_hr_job_views.xml b/yuthon_hr_employee/views/inherit_hr_job_views.xml index df4d72c55..1090a015c 100644 --- a/yuthon_hr_employee/views/inherit_hr_job_views.xml +++ b/yuthon_hr_employee/views/inherit_hr_job_views.xml @@ -135,9 +135,18 @@ + + + + + 合同类型 + + + 1 + @@ -150,6 +159,9 @@ action_create_new_job object + + 新建人员信息 + diff --git a/yuthon_hr_employee/views/yuthon_hr_employee_views.xml b/yuthon_hr_employee/views/yuthon_hr_employee_views.xml index 6cda30d06..1ee9635c4 100644 --- a/yuthon_hr_employee/views/yuthon_hr_employee_views.xml +++ b/yuthon_hr_employee/views/yuthon_hr_employee_views.xml @@ -271,14 +271,6 @@ - - - - - - - - 批量更新员工 diff --git a/yuthon_hr_employee_approval/models/yuthon_interview_approval.py b/yuthon_hr_employee_approval/models/yuthon_interview_approval.py index 6a2345429..babe02a88 100644 --- a/yuthon_hr_employee_approval/models/yuthon_interview_approval.py +++ b/yuthon_hr_employee_approval/models/yuthon_interview_approval.py @@ -45,12 +45,6 @@ class YuthonInterviewApproval(models.Model): } } - def put_interview_stage(self): - for rec in self.applicant_ids: - employee_id = self.env['hr.applicant'].search([('partner_name', '=',rec.name)]) - employee_id.write({ - 'stage_id': rec.interview_stage_id.id}) - def put_interview_wizard(self): self.ensure_one() application_list = [] @@ -59,13 +53,14 @@ class YuthonInterviewApproval(models.Model): 'applicant_time': applicant.interview_time, 'employee_ids': applicant.employee_ids.ids, 'stage_id': applicant.stage_id.id})) + return { 'name': '面试结果', 'type': 'ir.actions.act_window', 'view_mode': 'form', 'res_model': 'interview.approval.wizard', 'target': 'new', - 'context': {'default_interview_approval_line_ids': application_list, } + 'context': {'default_interview_approval_line_ids': application_list} } @api.onchange('is_issues') @@ -100,10 +95,13 @@ class InterviewApprovalLine(models.Model): def button_applicant_ids(self): self.ensure_one() - return { - 'type': 'ir.actions.act_window', - 'res_model': 'hr.applicant', - 'res_id': self.id, - 'view_mode': 'form', - 'target': 'current', - } \ No newline at end of file + applicant = self.env['hr.applicant'].search([('name', '=', self.name)], limit=1) + if applicant: + return { + 'type': 'ir.actions.act_window', + 'res_model': 'hr.applicant', + 'res_id': applicant.id, + 'view_mode': 'form', + 'target': 'current', + } + return None \ No newline at end of file diff --git a/yuthon_hr_employee_approval/views/yuthon_interview_approval_views.xml b/yuthon_hr_employee_approval/views/yuthon_interview_approval_views.xml index 7127b3333..1763c0caa 100644 --- a/yuthon_hr_employee_approval/views/yuthon_interview_approval_views.xml +++ b/yuthon_hr_employee_approval/views/yuthon_interview_approval_views.xml @@ -65,7 +65,7 @@ - diff --git a/yuthon_property/static/tmpl/fapiaojibenxinxi.xlsx b/yuthon_property/static/tmpl/fapiaojibenxinxi.xlsx index 3d3e41dfc..9999acf60 100644 Binary files a/yuthon_property/static/tmpl/fapiaojibenxinxi.xlsx and b/yuthon_property/static/tmpl/fapiaojibenxinxi.xlsx differ diff --git a/yuthon_property/static/tmpl/fapiaomingxixinxi.xlsx b/yuthon_property/static/tmpl/fapiaomingxixinxi.xlsx index b7ff60e58..39008e5d9 100644 Binary files a/yuthon_property/static/tmpl/fapiaomingxixinxi.xlsx and b/yuthon_property/static/tmpl/fapiaomingxixinxi.xlsx differ diff --git a/yuthon_property/static/tmpl/tedingyewuxinxi.xlsx b/yuthon_property/static/tmpl/tedingyewuxinxi.xlsx index 1458e8e96..df6a64172 100644 Binary files a/yuthon_property/static/tmpl/tedingyewuxinxi.xlsx and b/yuthon_property/static/tmpl/tedingyewuxinxi.xlsx differ diff --git a/yuthon_property/views/menuitem.xml b/yuthon_property/views/menuitem.xml index 1162771a8..da4de258c 100644 --- a/yuthon_property/views/menuitem.xml +++ b/yuthon_property/views/menuitem.xml @@ -140,25 +140,30 @@ code - action = model.download_template_with_data() - - - + + + 发票明细信息模板下载 diff --git a/yuthon_property/views/property_bank_statements_views.xml b/yuthon_property/views/property_bank_statements_views.xml index 50a8a7ec0..beebbf55e 100644 --- a/yuthon_property/views/property_bank_statements_views.xml +++ b/yuthon_property/views/property_bank_statements_views.xml @@ -26,7 +26,7 @@ -