From 893c83dcf4de6150f6c3baa438d62bc6f2053f6f Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 11 Mar 2013 17:48:29 +0100 Subject: [PATCH] [IMP] better follow buttons bzr revid: mat@openerp.com-20130311164829-vd8wuwh1657s0vjt --- addons/hr/hr.py | 2 +- addons/hr/hr_view.xml | 18 +++++++++++------- addons/hr/static/src/css/hr.css | 5 +++++ 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/addons/hr/hr.py b/addons/hr/hr.py index a7c084cf18c..d257c6d5d2e 100644 --- a/addons/hr/hr.py +++ b/addons/hr/hr.py @@ -291,7 +291,7 @@ class hr_employee(osv.osv): :return: the result of message_post from mail_thread, last call if several messages are sent. """ - + if 'res_users_id' in context and context['default_res_id'] == 0: employee_ids = self.search(cr, uid, [('user_id', '=', context['res_users_id'])], context=context) if len(employee_ids) > 0: diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index b3f8628ccc1..4ccb4425f2d 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -85,11 +85,12 @@ -
- - -
+ +
+ + +
@@ -159,9 +160,12 @@
  • -
    - - +
    + +
    diff --git a/addons/hr/static/src/css/hr.css b/addons/hr/static/src/css/hr.css index 16657394736..be21ca7e7a6 100644 --- a/addons/hr/static/src/css/hr.css +++ b/addons/hr/static/src/css/hr.css @@ -68,3 +68,8 @@ margin: 2px 0; padding: 0; } + +.openerp .oe_employee_vignette .oe_followers { + width: auto; + float: none; +} \ No newline at end of file