[FIX]website: do not send False value to google map api to retrieve the image. Otherwise, you are in the middle of the ocean.

bzr revid: dle@openerp.com-20140228170900-lagmopkmkb58exqr
This commit is contained in:
Denis Ledoux 2014-02-28 18:09:00 +01:00
parent 55270edc3c
commit 70d3570846
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ class res_partner(osv.osv):
def google_map_img(self, cr, uid, ids, zoom=8, width=298, height=298, context=None):
partner = self.browse(cr, uid, ids[0], context=context)
params = {
'center': '%s, %s %s, %s' % (partner.street, partner.city, partner.zip, partner.country_id and partner.country_id.name_get()[0][1] or ''),
'center': '%s, %s %s, %s' % (partner.street or '', partner.city or '', partner.zip or '', partner.country_id and partner.country_id.name_get()[0][1] or ''),
'size': "%sx%s" % (height, width),
'zoom': zoom,
'sensor': 'false',