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 bed32142a39..fd527209e12 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -31,23 +31,22 @@
- + - - @@ -67,13 +66,13 @@ - + - + @@ -134,6 +133,7 @@ kanban +
@@ -143,6 +143,11 @@

()

    +
  • + + + +
  • Tel:
  • @@ -421,9 +426,26 @@ - - - + + + + + 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 ce11812b479..9d8f0b5935e 100644 --- a/addons/hr_holidays/hr_holidays.py +++ b/addons/hr_holidays/hr_holidays.py @@ -512,7 +512,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 8ab02b528c5..62223922163 100644 --- a/addons/hr_holidays/hr_holidays_view.xml +++ b/addons/hr_holidays/hr_holidays_view.xml @@ -284,7 +284,7 @@ - + Requests Approve @@ -493,8 +493,6 @@ - - @@ -505,22 +503,17 @@ + - - -
  • - - - - - - - - -
  • + + + +