[FIX] website: google_map_link zoom was forced to '10'
Use the parameter zoom as in `google_map_img` Change the default value to 10 to avoid changing the behaviour for existing links (zoom was not used anyway). Closes #8318
This commit is contained in:
parent
57b993ffad
commit
91d54a0d7d
|
@ -783,11 +783,11 @@ class res_partner(osv.osv):
|
|||
}
|
||||
return urlplus('//maps.googleapis.com/maps/api/staticmap' , params)
|
||||
|
||||
def google_map_link(self, cr, uid, ids, zoom=8, context=None):
|
||||
def google_map_link(self, cr, uid, ids, zoom=10, context=None):
|
||||
partner = self.browse(cr, uid, ids[0], context=context)
|
||||
params = {
|
||||
'q': '%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 ''),
|
||||
'z': 10
|
||||
'z': zoom,
|
||||
}
|
||||
return urlplus('https://maps.google.com/maps' , params)
|
||||
|
||||
|
|
Loading…
Reference in New Issue