添加功能
This commit is contained in:
@@ -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 = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
|
||||
|
||||
Reference in New Issue
Block a user