diff --git a/addons/hr/hr.py b/addons/hr/hr.py
index 917e5f77b7a..4a5529c11a4 100644
--- a/addons/hr/hr.py
+++ b/addons/hr/hr.py
@@ -204,15 +204,15 @@ class hr_employee(osv.osv):
level -= 1
return True
- def _check_department_id(self, cr, uid, ids, context=None):
- for emp in self.browse(cr, uid, ids, context=context):
- if emp.department_id.manager_id and emp.id == emp.department_id.manager_id.id:
- return False
- return True
+# def _check_department_id(self, cr, uid, ids, context=None):
+# for emp in self.browse(cr, uid, ids, context=context):
+# if emp.department_id.manager_id and emp.id == emp.department_id.manager_id.id:
+# return False
+# return True
_constraints = [
(_check_recursion, 'Error ! You cannot create recursive Hierarchy of Employees.', ['parent_id']),
- (_check_department_id, 'Error ! You cannot select a department for which the employee is the manager.', ['department_id']),
+# (_check_department_id, 'Error ! You cannot select a department for which the employee is the manager.', ['department_id']),
]
hr_employee()
diff --git a/addons/hr/security/hr_security.xml b/addons/hr/security/hr_security.xml
index 61aa5a93b12..aba7d4b45e1 100644
--- a/addons/hr/security/hr_security.xml
+++ b/addons/hr/security/hr_security.xml
@@ -7,7 +7,7 @@
- Human Resources / User
+ Human Resources / Officer
diff --git a/addons/hr_holidays/hr_holidays_data.xml b/addons/hr_holidays/hr_holidays_data.xml
index 96fb29deae2..4e3a79f18f1 100644
--- a/addons/hr_holidays/hr_holidays_data.xml
+++ b/addons/hr_holidays/hr_holidays_data.xml
@@ -5,6 +5,7 @@
Casual Leave
+ Trueblack
diff --git a/addons/hr_holidays/hr_holidays_view.xml b/addons/hr_holidays/hr_holidays_view.xml
index a6adb1926d2..481d8cf87e9 100644
--- a/addons/hr_holidays/hr_holidays_view.xml
+++ b/addons/hr_holidays/hr_holidays_view.xml
@@ -93,11 +93,11 @@
-
-
+
+
-
+
@@ -135,11 +135,11 @@
-
+
-
+
@@ -413,7 +413,7 @@
-
+
-
@@ -133,7 +132,7 @@
-
+
diff --git a/addons/hr_recruitment/wizard/__init__.py b/addons/hr_recruitment/wizard/__init__.py
index c946ed7264f..acabd219857 100644
--- a/addons/hr_recruitment/wizard/__init__.py
+++ b/addons/hr_recruitment/wizard/__init__.py
@@ -22,6 +22,7 @@
import hr_recruitment_phonecall
import hr_recruitment_create_partner_job
+import hr_recruitment_employee_hired
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/hr_recruitment/wizard/hr_recruitment_employee_hired.py b/addons/hr_recruitment/wizard/hr_recruitment_employee_hired.py
new file mode 100644
index 00000000000..bcb5a5c2507
--- /dev/null
+++ b/addons/hr_recruitment/wizard/hr_recruitment_employee_hired.py
@@ -0,0 +1,61 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2009 Tiny SPRL (). All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+from osv import osv, fields
+from tools.translate import _
+
+class hired_employee(osv.osv_memory):
+ _name = 'hired.employee'
+ _description = 'Create Employee'
+
+ def case_close(self, cr, uid,ids, context=None):
+ """
+ @param self: The object pointer
+ @param cr: the current row, from the database cursor,
+ @param uid: the current user’s ID for security checks,
+ @param ids: List of case's Ids
+ @param *args: Give Tuple Value
+ """
+ if context is None:
+ context = {}
+
+ hr_app = self.pool.get('hr.applicant')
+ hr_app.case_close(cr, uid,context.get('active_ids',False))
+ return {}
+
+ def case_close_without_emp(self, cr, uid,ids, context=None):
+ """
+ @param self: The object pointer
+ @param cr: the current row, from the database cursor,
+ @param uid: the current user’s ID for security checks,
+ @param ids: List of case's Ids
+ """
+ if context is None:
+ context = {}
+
+ hr_app = self.pool.get('hr.applicant')
+ hr_app.case_close_without_emp(cr, uid,context.get('active_ids',False))
+
+ return {}
+
+hired_employee()
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/hr_recruitment/wizard/hr_recruitment_employee_hired.xml b/addons/hr_recruitment/wizard/hr_recruitment_employee_hired.xml
new file mode 100644
index 00000000000..b447782719a
--- /dev/null
+++ b/addons/hr_recruitment/wizard/hr_recruitment_employee_hired.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+ hr.recruitment.hired2employee.form
+ hired.employee
+ form
+
+
+
+
+
+ Create Employee
+ ir.actions.act_window
+ hired.employee
+ form
+ form
+ new
+
+
+
+
\ No newline at end of file