[REF]: Changed 'Work Phone' and 'Work E-mail' related on address for hr.employee.

bzr revid: uco@tinyerp.co.in-20100119050314-00qrnzb4wddqble4
This commit is contained in:
uco (OpenERP) 2010-01-19 10:33:14 +05:30
parent b07071b966
commit 60a11d75b7
1 changed files with 2 additions and 2 deletions

View File

@ -134,8 +134,8 @@ class hr_employee(osv.osv):
'address_id': fields.many2one('res.partner.address', 'Working Address'),
'address_home_id': fields.many2one('res.partner.address', 'Home Address'),
'work_phone': fields.char('Work Phone', size=32),
'work_email': fields.char('Work Email', size=128),
'work_phone': fields.related('address_id', 'phone', type='char', string='Work Phone'),
'work_email': fields.related('address_id', 'email', type='char', string='Work E-mail'),
'work_location': fields.char('Office Location', size=32),
'notes': fields.text('Notes'),