添加功能

This commit is contained in:
zhou
2025-04-01 15:46:21 +08:00
parent d01c1c1291
commit 4fb4fede2a
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -27,10 +27,10 @@ class PayrollLaborWizard(models.Model):
def yuthon_payroll_data(self, row):
employee_id = self.env['hr.employee'].search([('name', '=', row[0].value)])
current_year = row[1].value
current_month = row[2].value
current_month = str(int(row[2].value))
labor_amount = row[3].value
self.env['yuthon.payroll.retired'].create({
'name': employee_id.id,
self.env['yuthon.payroll.labor'].create({
'employee_id': employee_id.id,
'current_year': current_year,
'current_month': current_month,
'labor_amount': labor_amount,
@@ -27,11 +27,11 @@ class PayrollLaborWizard(models.Model):
def yuthon_payroll_data(self, row):
name = row[0].value
current_year = row[1].value
current_month = row[2].value
labor_amount = row[3].value
current_month = str(int(row[2].value))
retired_amount = row[3].value
self.env['yuthon.payroll.retired'].create({
'name': name,
'current_year': current_year,
'current_month': current_month,
'labor_amount': labor_amount,
'retired_amount': retired_amount,
})