*replaced the email field on res.partner.address into a fields.related that links to the email address of the first job of the address (use of sequence)

bzr revid: qdp@tinyerp.com-20081007093956-ugg7df1tcb8rbbld
This commit is contained in:
qdp 2008-10-07 11:39:56 +02:00
parent 0950bacc7d
commit 7984a5cb8b
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ class res_partner_address(osv.osv):
_description ='Partner Address'
_columns = {
'job_ids':fields.one2many('res.partner.job', 'address_id', 'Contacts'),
'email': fields.related('job_ids', 'email', type='char', string='Default Email'),
}
res_partner_address()