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()