[REF]: Changed 'Work Phone' and 'Work E-mail' related on address for hr.employee.
authoruco (OpenERP) <uco@tinyerp.co.in>
Tue, 19 Jan 2010 05:03:14 +0000 (10:33 +0530)
committeruco (OpenERP) <uco@tinyerp.co.in>
Tue, 19 Jan 2010 05:03:14 +0000 (10:33 +0530)
bzr revid: uco@tinyerp.co.in-20100119050314-00qrnzb4wddqble4

addons/hr/hr.py

index 40c428a..0d4d5f5 100644 (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'),