diff --git a/yuthon_salary/wizard/salary_meal_wizard.py b/yuthon_salary/wizard/salary_meal_wizard.py index bb38f2b29..ffd31c160 100644 --- a/yuthon_salary/wizard/salary_meal_wizard.py +++ b/yuthon_salary/wizard/salary_meal_wizard.py @@ -43,7 +43,7 @@ class SalaryMealWizard(models.TransientModel): self.salary_meal_data(row) def salary_meal_data(self, row): - select_year = str(row[0].value).replace("年", "").strip() + select_year = str(row[0].value).replace("年", "").strip()[0:4] select_time = str(row[1].value).replace("月", "").strip() employee_id = self.env['hr.employee'].search([('identification_id', '=', row[3].value)], limit=1) card = row[3].value