From 91d54a0d7d25163e8a24f3ec9b3d289735f14476 Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Tue, 1 Sep 2015 13:54:17 +0200 Subject: [PATCH] [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 --- addons/website/models/website.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website/models/website.py b/addons/website/models/website.py index 986af6d0b7d..e82d09b0502 100644 --- a/addons/website/models/website.py +++ b/addons/website/models/website.py @@ -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)