diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml
index ccee445c1f8..d8ce599c071 100644
--- a/addons/hr/hr_view.xml
+++ b/addons/hr/hr_view.xml
@@ -99,6 +99,7 @@
+
@@ -154,7 +155,7 @@
=======================
-->
-
+
hr.hr.employee.marital.status.tree
hr.employee.marital.status
tree
@@ -338,9 +339,9 @@
-
-
-
+
+
+
@@ -369,16 +370,21 @@
-
+ name="Current" help="Open and in recruitment positions"/>
+
+
-
+
+
+
+
+
@@ -388,6 +394,8 @@
hr.job
form
tree,form
+
+ {'search_default_Current':1}
diff --git a/addons/hr_attendance/__openerp__.py b/addons/hr_attendance/__openerp__.py
index 68eb3c20258..5a79566bcde 100644
--- a/addons/hr_attendance/__openerp__.py
+++ b/addons/hr_attendance/__openerp__.py
@@ -35,7 +35,6 @@
'security/hr_security.xml',
'security/ir.model.access.csv',
'hr_attendance_view.xml',
- 'hr_attendance_wizard.xml',
'hr_attendance_report.xml',
'security/ir.model.access.csv',
'wizard/hr_attendance_bymonth_view.xml',
diff --git a/addons/hr_attendance/hr_attendance_wizard.xml b/addons/hr_attendance/hr_attendance_wizard.xml
deleted file mode 100644
index 3fc43bce7c5..00000000000
--- a/addons/hr_attendance/hr_attendance_wizard.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/addons/hr_contract/hr_contract.py b/addons/hr_contract/hr_contract.py
index edc6ee4dc74..1d2962a0702 100644
--- a/addons/hr_contract/hr_contract.py
+++ b/addons/hr_contract/hr_contract.py
@@ -26,6 +26,18 @@ class hr_employee(osv.osv):
_name = "hr.employee"
_description = "Employee"
_inherit = "hr.employee"
+
+ def _get_latest_contract(self, cr, uid, ids, field_name, args, context=None):
+ res = {}
+ obj_contract = self.pool.get('hr.contract')
+ for emp in self.browse(cr, uid, ids, context=context):
+ contract_ids = obj_contract.search(cr, uid, [('employee_id','=',emp.id),], order='date_start', context=context)
+ if contract_ids:
+ res[emp.id] = contract_ids[-1:][0]
+ else:
+ res[emp.id] = False
+ return res
+
_columns = {
'manager': fields.boolean('Is a Manager'),
'medic_exam': fields.date('Medical Examination Date'),
@@ -34,7 +46,9 @@ class hr_employee(osv.osv):
'vehicle': fields.char('Company Vehicle', size=64),
'vehicle_distance': fields.integer('Home-Work Distance', help="In kilometers"),
'contract_ids': fields.one2many('hr.contract', 'employee_id', 'Contracts'),
- }
+ 'contract_id':fields.function(_get_latest_contract, method=True, string='Contract', type='many2one', relation="hr.contract", help='Latest contract of the employee'),
+ }
+
hr_employee()
#Contract wage type period name
diff --git a/addons/hr_contract/hr_contract_view.xml b/addons/hr_contract/hr_contract_view.xml
index d32f9301b36..c049d92a783 100644
--- a/addons/hr_contract/hr_contract_view.xml
+++ b/addons/hr_contract/hr_contract_view.xml
@@ -101,8 +101,8 @@
hr.employee
-
-
+
+
@@ -120,7 +120,22 @@
-
+
+
+
+
+
+
+
+
+ hr.employee.view.form3
+ hr.employee
+ form
+
+
+
+
+
@@ -133,12 +148,14 @@
+
+
@@ -159,7 +176,7 @@
-
+
diff --git a/addons/hr_evaluation/hr_evaluation_view.xml b/addons/hr_evaluation/hr_evaluation_view.xml
index 1ce31942e45..440b1eff322 100644
--- a/addons/hr_evaluation/hr_evaluation_view.xml
+++ b/addons/hr_evaluation/hr_evaluation_view.xml
@@ -2,7 +2,7 @@
-
+
hr_evaluation.plan.search
hr_evaluation.plan
search
@@ -140,12 +140,12 @@
hr.employee
-
+
-
+
@@ -332,7 +332,8 @@
-
+
+
@@ -349,7 +350,7 @@
-
diff --git a/addons/hr_payroll/hr_payroll.py b/addons/hr_payroll/hr_payroll.py
index ba011442294..0e5513ba226 100644
--- a/addons/hr_payroll/hr_payroll.py
+++ b/addons/hr_payroll/hr_payroll.py
@@ -891,7 +891,6 @@ class hr_payslip(osv.osv):
contract = cr.dictfetchone()
contract = contract and contract or {}
-
return contract
def _get_leaves(self, cr, user, slip, employee, context=None):
@@ -1322,10 +1321,10 @@ class hr_employee(osv.osv):
_columns = {
'pan_no':fields.char('PAN No', size=64, required=False, readonly=False),
- 'esp_account':fields.char('EPS Account', size=64, required=False, readonly=False),
- 'pf_account':fields.char('PF Account', size=64, required=False, readonly=False),
+ 'esp_account':fields.char('EPS Account', size=64, required=False, readonly=False, help="EPS Account"),
+ 'pf_account':fields.char('PF Account', size=64, required=False, readonly=False, help="Providend Fund Account"),
'pg_joining': fields.date('PF Join Date'),
- 'esi_account':fields.char('ESI Account', size=64, required=False, readonly=False),
+ 'esi_account':fields.char('ESI Account', size=64, required=False, readonly=False, help="ESI Account"),
'hospital_id':fields.many2one('res.partner.address', 'ESI Hospital', required=False),
'passport_id':fields.many2one('hr.passport', 'Passport', required=False),
'otherid':fields.char('Other Id', size=64, required=False),
diff --git a/addons/hr_payroll/hr_payroll_view.xml b/addons/hr_payroll/hr_payroll_view.xml
index 11923176333..807e83d9114 100644
--- a/addons/hr_payroll/hr_payroll_view.xml
+++ b/addons/hr_payroll/hr_payroll_view.xml
@@ -98,7 +98,7 @@
hr.employee
-
+
@@ -110,7 +110,7 @@
-
-
+
@@ -167,7 +167,6 @@
-
@@ -201,10 +200,10 @@
-
+
-
+
@@ -523,7 +522,8 @@
-
+
+
@@ -531,9 +531,12 @@
+
+
-
-
+
+
+
diff --git a/addons/hr_recruitment/hr_recruitment_view.xml b/addons/hr_recruitment/hr_recruitment_view.xml
index 1a38b8d5a5b..04ef6dc162c 100644
--- a/addons/hr_recruitment/hr_recruitment_view.xml
+++ b/addons/hr_recruitment/hr_recruitment_view.xml
@@ -143,9 +143,6 @@
-
-
-