From 7a40c78550ef404d850a64fb5c4b2ca84b0d32e2 Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Wed, 11 Feb 2026 19:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AF=E9=A4=90=E5=AF=BC=E5=85=A5=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_salary/wizard/salary_meal_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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