Download Odoo module web_widget_google_maps
Get the google map API Key (which may incurred fees).
Go to the General Settings ->Website, to enter the Google Map Key.
Add the widget to your module with the latitude and longitude. You may insert it in the form page. See the code snippet below.
If you website is https, remember to changed the google map URL in the web_gmap.js (web_widget_google_maps module) to https, otherwise may be blocked by the chrome.
Click "Like" at the bottom of this blog, to motivate us to continue sharing more Odoo tips.
<widget name="gmap_marker" lat="last_gps_latitude" lng="last_gps_longitude"description="Truck Location"/>
Comments