From 485206dcf396556edf53610a96c08b2bb578d6cd Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Sun, 15 Dec 2024 19:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_contract/wizard/yuthon_contract_wizard.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yuthon_contract/wizard/yuthon_contract_wizard.py b/yuthon_contract/wizard/yuthon_contract_wizard.py index 2ed6f27f3..85a877abc 100644 --- a/yuthon_contract/wizard/yuthon_contract_wizard.py +++ b/yuthon_contract/wizard/yuthon_contract_wizard.py @@ -28,11 +28,11 @@ class YuthonContractWizard(models.Model): def employee_contract_data(self,row): employee_id = self.env['hr.employee'].search([('name', '=', row[1].value)]) - structure_type_id = self.env['hr.payroll.structure.type'].search([('name', '=', row[2].value), ('yuthon_company', '=', 'thtz')]) - party_id = self.env['yuthon.party.setting'].search([('party', '=', row[0].value)]) - contract_type_id = self.env['hr.contract.type'].search([('name', '=', row[3].value)]) + structure_type_id = self.env['hr.payroll.structure.type'].search([('name', '=', row[4].value), ('yuthon_company', '=', 'thwg')]) + party_id = self.env['yuthon.party.setting'].search([('party', '=', row[5].value)]) + contract_type_id = self.env['hr.contract.type'].search([('name', '=', row[6].value)]) wage_id = self.env['hr.salary.rule'].search([('struct_id.name', '=', structure_type_id.name), - ('yuthon_company', '=', 'thtz'), + ('yuthon_company', '=', 'thwg'), ('name', '=', '基本工资')]) resource_calendar_id = self.env['resource.calendar'].search([('name', '=', '行政考勤')], limit=1) wage = wage_id.amount_fix