projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec7fd06
)
[IMP] website: google maps url
author
Martin Trigaux
<mat@odoo.com>
Thu, 23 Oct 2014 10:38:31 +0000
(12:38 +0200)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/addons/website/models/website.py
b/addons/website/models/website.py
index
b9db8bb
..
541a75a
100644
(file)
--- a/
addons/website/models/website.py
+++ b/
addons/website/models/website.py
@@
-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)