2 In order to test hr_contract module in OpenERP, I will create a new employee and create contract for the same.
5 I create a new employee "Mark Johnson".
7 !record {model: hr.employee, id: hr_employee_employee0}:
8 address_home_id: base.res_partner_address_1
9 company_id: base.main_company
14 place_of_birth: Belgium
19 I create a new contract for "Mark Johnson".
21 !record {model: hr.contract, id: hr_contract_contract0}:
22 employee_id: 'hr_employee_employee0'
23 date_end: !eval "'%s-05-18' %(datetime.now().year+1)"
24 date_start: !eval "'%s-05-18' %(datetime.now().year)"
25 trial_date_end: !eval "'%s-03-01' %(datetime.now().year)"
26 trial_date_start: !eval "'%s-04-30' %(datetime.now().year)"
29 type_id: hr_contract_type_emp
30 working_hours: resource.timesheet_group1