diff --git a/yuthon_salary/wizard/salary_compute_wizard.py b/yuthon_salary/wizard/salary_compute_wizard.py index 7898715d1..6885ec1cb 100644 --- a/yuthon_salary/wizard/salary_compute_wizard.py +++ b/yuthon_salary/wizard/salary_compute_wizard.py @@ -274,15 +274,12 @@ 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), ('salary_group_id.name', '=', '天河物管领导')]): - rec.compute_sheet() - year = int(self.select_year) month = int(self.select_time) - # 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() + 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() def _get_chinese_month(self, month): chinese_months = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']