[ADD]: hr: add Yaml test file for hr module.

bzr revid: atp@tinyerp.co.in-20100519045621-rlzppjmw028869kp
This commit is contained in:
atp (Open ERP) 2010-05-19 10:26:21 +05:30
parent 11c75c9586
commit 863e387e86
56 changed files with 70 additions and 1 deletions

0
addons/hr/__init__.py Normal file → Executable file
View File

2
addons/hr/__openerp__.py Normal file → Executable file
View File

@ -47,6 +47,8 @@
],
'demo_xml': ['hr_demo.xml',
'hr_department_demo.xml'],
'test': ['test/test_hr.yml'],
'installable': True,
'active': False,
'certificate': '0086710558965',

0
addons/hr/hr.py Normal file → Executable file
View File

0
addons/hr/hr_data.xml Normal file → Executable file
View File

0
addons/hr/hr_demo.xml Normal file → Executable file
View File

0
addons/hr/hr_department.py Normal file → Executable file
View File

0
addons/hr/hr_department_demo.xml Normal file → Executable file
View File

0
addons/hr/hr_department_view.xml Normal file → Executable file
View File

0
addons/hr/hr_installer.xml Normal file → Executable file
View File

1
addons/hr/hr_view.xml Normal file → Executable file
View File

@ -191,7 +191,6 @@
<field name="ssnid"/>
<field name="user_id"/>
<field name="address_id"/>
</tree>
</field>
</record>

0
addons/hr/i18n/ar.po Normal file → Executable file
View File

0
addons/hr/i18n/bs.po Normal file → Executable file
View File

0
addons/hr/i18n/ca.po Normal file → Executable file
View File

0
addons/hr/i18n/cs.po Normal file → Executable file
View File

0
addons/hr/i18n/de.po Normal file → Executable file
View File

0
addons/hr/i18n/el.po Normal file → Executable file
View File

0
addons/hr/i18n/es.po Normal file → Executable file
View File

0
addons/hr/i18n/es_AR.po Normal file → Executable file
View File

0
addons/hr/i18n/es_EC.po Normal file → Executable file
View File

0
addons/hr/i18n/et.po Normal file → Executable file
View File

0
addons/hr/i18n/fi.po Normal file → Executable file
View File

0
addons/hr/i18n/fr.po Normal file → Executable file
View File

0
addons/hr/i18n/hi.po Normal file → Executable file
View File

0
addons/hr/i18n/hr.po Normal file → Executable file
View File

0
addons/hr/i18n/hr.pot Normal file → Executable file
View File

0
addons/hr/i18n/hu.po Normal file → Executable file
View File

0
addons/hr/i18n/id.po Normal file → Executable file
View File

0
addons/hr/i18n/it.po Normal file → Executable file
View File

0
addons/hr/i18n/ko.po Normal file → Executable file
View File

0
addons/hr/i18n/lt.po Normal file → Executable file
View File

0
addons/hr/i18n/lv.po Normal file → Executable file
View File

0
addons/hr/i18n/nl.po Normal file → Executable file
View File

0
addons/hr/i18n/nl_BE.po Normal file → Executable file
View File

0
addons/hr/i18n/pl.po Normal file → Executable file
View File

0
addons/hr/i18n/pt.po Normal file → Executable file
View File

0
addons/hr/i18n/pt_BR.po Normal file → Executable file
View File

0
addons/hr/i18n/ro.po Normal file → Executable file
View File

0
addons/hr/i18n/ru.po Normal file → Executable file
View File

0
addons/hr/i18n/sk.po Normal file → Executable file
View File

0
addons/hr/i18n/sl.po Normal file → Executable file
View File

0
addons/hr/i18n/sq.po Normal file → Executable file
View File

0
addons/hr/i18n/sr.po Normal file → Executable file
View File

0
addons/hr/i18n/sv.po Normal file → Executable file
View File

0
addons/hr/i18n/th.po Normal file → Executable file
View File

0
addons/hr/i18n/th_TH.po Normal file → Executable file
View File

0
addons/hr/i18n/tlh.po Normal file → Executable file
View File

0
addons/hr/i18n/tr.po Normal file → Executable file
View File

0
addons/hr/i18n/uk.po Normal file → Executable file
View File

0
addons/hr/i18n/vi.po Normal file → Executable file
View File

0
addons/hr/i18n/zh_CN.po Normal file → Executable file
View File

0
addons/hr/i18n/zh_TW.po Normal file → Executable file
View File

0
addons/hr/installer.py Normal file → Executable file
View File

0
addons/hr/process/hr_process.xml Normal file → Executable file
View File

0
addons/hr/security/hr_security.xml Normal file → Executable file
View File

0
addons/hr/security/ir.model.access.csv Normal file → Executable file
View File

View File

@ -0,0 +1,68 @@
- |
In order to test the hr module in OpenERP, I will create new Employee , Department and Job Position.
-
|
First I create Department "R & D" in Department form.
-
!record {model: hr.department, id: hr_department_rd0}:
manager_id: base.user_root
name: 'R & D '
-
|
Now, I create a new employee “employee1”.
select "R & D" Department which I had created.
-
!record {model: hr.employee, id: hr_employee_employee0}:
address_home_id: base.res_partner_address_1
company_id: base.main_company
gender: male
marital: hr.hr_employee_marital_status_single
name: employee1
user_id: base.user_root
department_id: 'hr_department_rd0'
- |
In order to check the wizard “Employee Hierarchy” I will create new employee “employee2” and select "employee1" as
Manager.
-
!record {model: hr.employee, id: hr_employee_employee1}:
address_home_id: base.res_partner_address_3000
company_id: base.main_company
gender: male
name: employee2
user_id: base.user_demo
parent_id: 'hr_employee_employee0'
- |
Now I will open up form view of “employee1” and test the wizard “Employee Hierarchy” so it display the employee
hierarchy starting from “employee1”.
- |
Now I will create new Job Position. I will check successfull creation of new Job Position by adding the information.
-
!record {model: hr.job, id: hr_job_jea0}:
department_id: 'hr_department_rd0'
description: 'Position of Junier Application Engineer '
expected_employees: 5
name: 'JEA '
- |
I check that Employee form is in "Open" state.
-
!assert {model: hr.job, id: hr_job_jea0}:
- state == 'open'
- |
I create Employee for this position in this Job Position form.
-
!record {model: hr.job, id: hr_job_jea0}:
employee_ids:
- address_home_id: base.res_partner_address_1
name: employee3
department_id: 'hr_department_rd0'
gender: male
parent_id: 'hr_employee_employee0'
-
I check that "NO of Employee" is "1"
-
!assert {model: hr.job, id: hr_job_jea0}:
- no_of_employee != False