From 281586c4ee17c27c140bf632567becb95f47ddde Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Fri, 25 Jul 2025 11:00:43 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_salary/wizard/salary_compute_wizard.py b/yuthon_salary/wizard/salary_compute_wizard.py index 6885ec1cb..193b7668f 100644 --- a/yuthon_salary/wizard/salary_compute_wizard.py +++ b/yuthon_salary/wizard/salary_compute_wizard.py @@ -276,7 +276,7 @@ class SalaryComputeWizard(models.Model): year = int(self.select_year) month = int(self.select_time) - for rec2 in self.env['hr.payslip'].search(('is_push', '=', False)): + for rec2 in self.env['hr.payslip'].search([('is_push', '=', False)]): if not self._is_employee_turnover(rec2.employee_id, year, month) and not self._is_employee_in_probation( rec2.employee_id, year, month): rec2.compute_sheet()