[IMP] website: google maps url
Use the protocol as the current page to avoid warning with mixed content (loading map in http inside an https page)
This commit is contained in:
parent
ec7fd06ade
commit
d5235f7326
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue