diff --git a/addons/hr/hr.py b/addons/hr/hr.py
index 9d1ba1c9f05..32c291044c0 100644
--- a/addons/hr/hr.py
+++ b/addons/hr/hr.py
@@ -209,6 +209,7 @@ class hr_employee(osv.osv):
'color': fields.integer('Color Index'),
'city': fields.related('address_id', 'city', type='char', string='City'),
'login': fields.related('user_id', 'login', type='char', string='Login', readonly=1),
+ 'last_login': fields.related('user_id', 'date', type='datetime', string='Latest Connection', readonly=1),
}
def unlink(self, cr, uid, ids, context=None):
diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml
index 32eb3a84c83..7a3b294d5be 100644
--- a/addons/hr/hr_view.xml
+++ b/addons/hr/hr_view.xml
@@ -41,8 +41,6 @@
-
-
@@ -65,12 +63,12 @@
-
+
-
+
@@ -130,6 +128,7 @@
kanban
+
@@ -139,6 +138,11 @@
+ -
+
+
+
+
- Tel:
@@ -424,7 +428,27 @@
-
+
+
+ hr.job.employee.form
+ hr.job
+ form
+ 20
+
+
+
+
+
Job Positions
hr.job
diff --git a/addons/hr_holidays/hr_holidays.py b/addons/hr_holidays/hr_holidays.py
index 4e68cdfb2f9..d44bf71ef91 100644
--- a/addons/hr_holidays/hr_holidays.py
+++ b/addons/hr_holidays/hr_holidays.py
@@ -513,7 +513,6 @@ class hr_employee(osv.osv):
'current_leave_id': fields.function(_get_leave_status, multi="leave_status", string="Current Leave Type",type='many2one', relation='hr.holidays.status'),
'leave_date_from': fields.function(_get_leave_status, multi='leave_status', type='date', string='From Date'),
'leave_date_to': fields.function(_get_leave_status, multi='leave_status', type='date', string='To Date'),
- 'last_login': fields.related('user_id', 'date', type='datetime', string='Latest Connection', readonly=1)
}
hr_employee()
diff --git a/addons/hr_holidays/hr_holidays_view.xml b/addons/hr_holidays/hr_holidays_view.xml
index 32cdcb53011..35f0d0fa37c 100644
--- a/addons/hr_holidays/hr_holidays_view.xml
+++ b/addons/hr_holidays/hr_holidays_view.xml
@@ -303,7 +303,7 @@
-
+
Requests Approve
@@ -512,8 +512,8 @@
-
-
+
+
@@ -525,20 +525,16 @@
-
- -
+
-
-
-
-