From f6927b441a6d3cf0dfb69f35780bcfebff310e42 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Tue, 3 Jun 2025 15:52:12 +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/models/inherit_hr_payslip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py index 4d1f6eba8..442355e37 100644 --- a/yuthon_salary/models/inherit_hr_payslip.py +++ b/yuthon_salary/models/inherit_hr_payslip.py @@ -131,7 +131,7 @@ class InheritHrPayslip(models.Model): # 过滤出状态为草稿或已验证的工资单 payslips = payslips.filtered( lambda slip: slip.state in ['draft', 'verify'] - and slip.employee_id.contract_id.is_probation + and not slip.employee_id.contract_id.is_probation ) # delete old payslip lines payslips.line_ids.unlink()