[Fix] hr : small change in onchange

bzr revid: vir@tinyerp.com-20100908113150-8qu64tchjdveuykw
This commit is contained in:
Vir (Open ERP)
2010-09-08 17:01:50 +05:30
parent 276d8e16a6
commit 73807c9465
+1 -1
View File
@@ -143,7 +143,7 @@ class hr_employee(osv.osv):
def onchange_user(self, cr, uid, ids, user_id, context=None):
mail = self.pool.get('res.users').browse(cr,uid,user_id)
return {'value': {'work_email':mail}}
return {'value': {'work_email':mail.user_email}}
def _get_photo(self, cr, uid, context=None):
return open(os.path.join(