!4061 添加功能

Merge pull request !4061 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-07-25 02:48:09 +00:00
committed by Gitee
@@ -279,10 +279,10 @@ 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)):
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 = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']