[ADD] hr: web_icon for human resources application

bzr revid: xmo@openerp.com-20101126114342-74fivsmdkw8mvihj
This commit is contained in:
Xavier Morel 2010-11-26 12:43:42 +01:00
parent 07ee3643e6
commit 0e41d853ed
3 changed files with 4 additions and 2 deletions

View File

@ -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 = {

View File

@ -3,7 +3,9 @@
<data>
<menuitem id="menu_hr_root" icon="terp-hr" name="Human Resources" sequence="15"
groups="base.group_hr_manager,base.group_hr_user"/>
groups="base.group_hr_manager,base.group_hr_user"
web_icon="images/hr.png"
web_icon_hover="images/hr-hover.png"/>
<menuitem id="menu_hr_main" parent="menu_hr_root" name="Human Resources" sequence="0" groups="base.group_hr_manager"/>
<menuitem id="menu_hr_configuration" name="Configuration" parent="hr.menu_hr_root" groups="base.group_hr_manager" sequence="50"/>
<menuitem id="menu_hr_management" name="Human Resources" parent="hr.menu_hr_configuration" sequence="1"/>

View File

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB