添加功能
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user