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