[IMP]account_followup: remove address

bzr revid: sbh@tinyerp.com-20120330050955-fsld4gti0phnu34h
This commit is contained in:
Sbh (Openerp) 2012-03-30 10:39:55 +05:30
parent 964b385d5c
commit bba2e9ce07
2 changed files with 10 additions and 11 deletions

View File

@ -234,14 +234,13 @@ class account_followup_print_all(osv.osv_memory):
for line in data_lines:
total_amt += line.debit - line.credit
dest = False
if partner.address:
for adr in partner.address:
if adr.type=='contact':
if adr.email:
dest = [adr.email]
if (not dest) and adr.type=='default':
if adr.email:
dest = [adr.email]
if partner:
if partner.type=='contact':
if adr.email:
dest = [partner.email]
if (not dest) and partner.type=='default':
if partner.email:
dest = [partner.email]
src = tools.config.options['email_from']
if not data.partner_lang:
body = data.email_body

View File

@ -219,7 +219,7 @@ class payment_line(osv.osv):
break
partner = line.partner_id.name or ''
if line.partner_id:
#for ads in line.partner_id.address:
#for ads in line.partner_id:
if line.partner_id.type == 'default':
st = line.partner_id.street and line.partner_id.street or ''
st1 = line.partner_id.street2 and line.partner_id.street2 or ''