From 9927201aae544dad0f6afdde7d04679a712ab58c Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 14 Jul 2025 15:21:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_salary/wizard/salary_compute_wizard.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yuthon_salary/wizard/salary_compute_wizard.py b/yuthon_salary/wizard/salary_compute_wizard.py index 590c902ce..c4be3f9a1 100644 --- a/yuthon_salary/wizard/salary_compute_wizard.py +++ b/yuthon_salary/wizard/salary_compute_wizard.py @@ -167,7 +167,8 @@ class SalaryComputeWizard(models.Model): contract_start_date = internship_id.date_from contract_end_date = is_turnover else: - continue + internship_id.compute_sheet() + if is_turnover or is_probation: days = self._process_shift_days(original_start_date, original_end_date) # 总工作日 @@ -281,8 +282,8 @@ class SalaryComputeWizard(models.Model): setattr(internship_id, field_name, result) line.write({'total': result}) - # for rec in self.env['hr.payslip'].search([('is_push', '=', False), ('employee_id.name', '!=', '王鸿怡')]): - # rec.compute_sheet() + for rec in self.env['hr.payslip'].search([('is_push', '=', False), ('salary_group_id.name', '=', '天河物管领导')]): + rec.compute_sheet() # # for rec2 in self.env['hr.payslip'].search([('employee_id.name', 'in', ['黄昱皓', '谭铭浩', '朱文浩'])]): # rec2.compute_sheet()