diff --git a/addons/hr/__terp__.py b/addons/hr/__terp__.py
index f78bdc4ef18..4063b327545 100644
--- a/addons/hr/__terp__.py
+++ b/addons/hr/__terp__.py
@@ -44,7 +44,8 @@
'hr_view.xml',
'hr_department_view.xml',
'process/hr_process.xml',
- 'hr_installer.xml'
+ 'hr_installer.xml',
+ 'hr_data.xml'
],
'demo_xml': ['hr_demo.xml',
'hr_department_demo.xml'],
diff --git a/addons/hr/hr.py b/addons/hr/hr.py
index 06196c3bd39..d3f4da23475 100755
--- a/addons/hr/hr.py
+++ b/addons/hr/hr.py
@@ -52,6 +52,15 @@ class hr_employee_category(osv.osv):
hr_employee_category()
+class hr_employee_marital_status(osv.osv):
+ _name = "hr.employee.marital.status"
+ _description = "Employee Marital Status"
+ _columns = {
+ 'name' : fields.char('Marital Status', size=30, required=True),
+ 'description' : fields.text('Status Description'),
+ }
+hr_employee_marital_status()
+
class hr_employee(osv.osv):
_name = "hr.employee"
_description = "Employee"
@@ -63,7 +72,7 @@ class hr_employee(osv.osv):
'sinid': fields.char('SIN No', size=32),
'otherid': fields.char('Other ID', size=32),
'gender': fields.selection([('',''),('male','Male'),('female','Female')], 'Gender'),
- 'marital': fields.selection([('married','Married'),('unmarried','Unmarried'),('divorced','Divorced'),('other','Other')],'Marital Status', size=32),
+ 'marital': fields.many2one('hr.employee.marital.status', 'Marital Status'),
'address_id': fields.many2one('res.partner.address', 'Working Address'),
'address_home_id': fields.many2one('res.partner.address', 'Home Address'),
diff --git a/addons/hr/hr_data.xml b/addons/hr/hr_data.xml
new file mode 100644
index 00000000000..7125afb17d4
--- /dev/null
+++ b/addons/hr/hr_data.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+ Single
+
+
+ Married
+
+
+ Divorced
+
+
+ Widower
+
+
+
diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml
index 66d9ee88dce..edc67a4bc1b 100644
--- a/addons/hr/hr_view.xml
+++ b/addons/hr/hr_view.xml
@@ -135,6 +135,35 @@
id="menu_open_view_employee_list_my"
parent="menu_hr_human_resources"/>
+
+
+ hr.hr.employee.marital.status
+ hr.employee.marital.status
+ form
+
+
+
+
+
+
+ Marital Status
+ hr.employee.marital.status
+ form
+ tree,form
+
+
+
+
-
- Single
-
-
- Married
-
-
- Divorced
-
-
- Widower
-
diff --git a/addons/hr_contract/hr_contract_view.xml b/addons/hr_contract/hr_contract_view.xml
index ecc4be6bd11..97b63282f24 100644
--- a/addons/hr_contract/hr_contract_view.xml
+++ b/addons/hr_contract/hr_contract_view.xml
@@ -15,18 +15,6 @@
-
- hr.hr.employee.marital.status
- hr.employee.marital.status
- form
-
-
-
-
-
hr.contract.wage.type.view.form
hr.contract.wage.type
@@ -118,7 +106,6 @@
-
@@ -137,18 +124,6 @@
-
- Marital Status
- hr.employee.marital.status
- form
- tree,form
-
-
-
-
hr.contract.view.form
hr.contract
diff --git a/addons/hr_contract/security/ir.model.access.csv b/addons/hr_contract/security/ir.model.access.csv
index 053b5c42ecd..29290f16067 100644
--- a/addons/hr_contract/security/ir.model.access.csv
+++ b/addons/hr_contract/security/ir.model.access.csv
@@ -1,5 +1,4 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
-"access_hr_employee_marital_status","hr.employee.marital.status","model_hr_employee_marital_status","hr.group_hr_user",1,1,1,1
"access_hr_contract_wage_type_period_user","hr.contract.wage.type.period user","model_hr_contract_wage_type_period","hr.group_hr_user",1,0,0,0
"access_hr_contract_wage_type_period","hr.contract.wage.type.period","model_hr_contract_wage_type_period","hr.group_hr_manager",1,1,1,1
"access_hr_contract_wage_type_user","hr.contract.wage.type user","model_hr_contract_wage_type","hr.group_hr_user",1,0,0,0