[Fix]: Improve display adress for print company name

bzr revid: sbh@tinyerp.com-20120312093332-oucqpsrcn33o82me
This commit is contained in:
Bhumika (OpenERP) 2012-03-12 15:03:32 +05:30
parent dff99a53aa
commit 20aa7d6fe8
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ class res_partner(osv.osv):
# get the information that will be injected into the display format
# get the address format
address_format = address.country_id and address.country_id.address_format or \
'%(street)s\n%(street2)s\n%(city)s,%(state_code)s %(zip)s'
'%(company_name)s\n%(street)s\n%(street2)s\n%(city)s,%(state_code)s %(zip)s'
args = {
'state_code': address.state_id and address.state_id.code or '',
'state_name': address.state_id and address.state_id.name or '',