From 0e41d853ed7e4c506eea258e73a562c92bab78be Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 26 Nov 2010 12:43:42 +0100 Subject: [PATCH] [ADD] hr: web_icon for human resources application bzr revid: xmo@openerp.com-20101126114342-74fivsmdkw8mvihj --- addons/hr/hr.py | 2 +- addons/hr/hr_view.xml | 4 +++- addons/hr/{image => images}/photo.png | Bin 3 files changed, 4 insertions(+), 2 deletions(-) rename addons/hr/{image => images}/photo.png (100%) diff --git a/addons/hr/hr.py b/addons/hr/hr.py index 40bc6da9c2f..9783efa58b6 100644 --- a/addons/hr/hr.py +++ b/addons/hr/hr.py @@ -178,7 +178,7 @@ class hr_employee(osv.osv): return {'value': {'work_email' : work_email}} def _get_photo(self, cr, uid, context=None): - photo_path = addons.get_module_resource('hr','image','photo.png') + photo_path = addons.get_module_resource('hr','images','photo.png') return open(photo_path, 'rb').read().encode('base64') _defaults = { diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index ce0a7193683..bc01d38d1a4 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -3,7 +3,9 @@ + groups="base.group_hr_manager,base.group_hr_user" + web_icon="images/hr.png" + web_icon_hover="images/hr-hover.png"/> diff --git a/addons/hr/image/photo.png b/addons/hr/images/photo.png similarity index 100% rename from addons/hr/image/photo.png rename to addons/hr/images/photo.png