[IMP] website: google maps url
authorMartin Trigaux <mat@odoo.com>
Thu, 23 Oct 2014 10:38:31 +0000 (12:38 +0200)
committerMartin Trigaux <mat@odoo.com>
Thu, 23 Oct 2014 10:38:31 +0000 (12:38 +0200)
Use the protocol as the current page to avoid warning with mixed content (loading map in http inside an https page)

addons/website/models/website.py

index b9db8bb..541a75a 100644 (file)
@@ -778,7 +778,7 @@ class res_partner(osv.osv):
             'zoom': zoom,
             'sensor': 'false',
         }
-        return urlplus('http://maps.googleapis.com/maps/api/staticmap' , params)
+        return urlplus('//maps.googleapis.com/maps/api/staticmap' , params)
 
     def google_map_link(self, cr, uid, ids, zoom=8, context=None):
         partner = self.browse(cr, uid, ids[0], context=context)