From 4fc5537bd8d277dfad8a844e39a0621747d66ec1 Mon Sep 17 00:00:00 2001 From: "ksa (Open ERP)" Date: Wed, 16 Feb 2011 14:15:31 +0530 Subject: [PATCH] [IMP]: hr related changes bzr revid: ksa@tinyerp.co.in-20110216084531-xr94jx9116ns3qyh --- addons/hr/hr.py | 12 ++++++------ addons/hr/security/hr_security.xml | 2 +- addons/hr_holidays/hr_holidays_view.xml | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/addons/hr/hr.py b/addons/hr/hr.py index e2b9a7089f3..5dc67e79d1b 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_view.xml b/addons/hr_holidays/hr_holidays_view.xml index e207c2caf7d..49c1d5d249e 100644 --- a/addons/hr_holidays/hr_holidays_view.xml +++ b/addons/hr_holidays/hr_holidays_view.xml @@ -94,7 +94,7 @@