[IMP] web: allow fields in list view to use the attrs readonly to dynamically show...
[odoo/odoo.git] / addons / hr_contract / test / test_hr_contract.yml
1 -
2   In order to test hr_contract module in OpenERP, I will create a new employee and create contract for the same.
3
4 -
5   I create a new employee "Mark Johnson".
6 -
7   !record {model: hr.employee, id: hr_employee_employee0}:
8     address_home_id: base.res_partner_address_1
9     company_id: base.main_company
10     gender: male
11     name: Mark Johnson
12     children: 2
13     marital: 'married'
14     place_of_birth: Belgium
15     vehicle: 'No'
16     vehicle_distance: 12
17
18 -
19   I create a new contract for "Mark Johnson".
20 -
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)"
27     name: contract1
28     wage: 1.0
29     type_id: hr_contract_type_emp
30     working_hours: resource.timesheet_group1