添加功能

This commit is contained in:
zhou
2025-07-25 10:50:29 +08:00
parent d6aedebcfa
commit d8a4375e84
@@ -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 = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']