diff --git a/yuthon_salary/wizard/salary_compute_wizard.py b/yuthon_salary/wizard/salary_compute_wizard.py index e89d301aa..07cfae92a 100644 --- a/yuthon_salary/wizard/salary_compute_wizard.py +++ b/yuthon_salary/wizard/salary_compute_wizard.py @@ -185,8 +185,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)]): - # rec.compute_sheet() + for rec in self.env['hr.payslip'].search([('is_push', '=', False), ('employee_name', '!=', '王鸿怡')]): + rec.compute_sheet() for rec2 in self.env['hr.payslip'].search([('employee_id.name', 'in', ['黄昱皓', '谭铭浩', '朱文浩'])]): rec2.compute_sheet()