Brings Google Maps features into Odoo Web
Show all your partners location on google maps
This module brings five new features:
- New view map allows user to view all partners addresses on google maps.
Google places autocomplete address form into partner form view,
provide autocomplete feature when you typed an address of partner (or any field using this widget)
Google places autocomplete into partner form view,
provide autocomplete feature when you typed partner name (or any field using this widget)
- Routes information
- Map Localization
New Widget Google Place Autocomplete Address Form
Provide autocomplete feature when typing an address
New Widget Google Place Autocomplete
Provide autocomplete feature when typing partner's name
Distance information between two partners locations
With some controls to display different information of routes
- Map layers (traffic, transit, bicycle)
- Travel mode (driving, walking, bicycling, transit)
- Redirection to google maps website to see the full features
Create new partner within the map
Using google places autocomplete, you can search any company, hotel, restaurant or any places recognized by Google
and then create it as your new partner
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
- Yopi Angi < firstname.lastname@example.org>
Please log in to comment on this module
- The author can leave a single reply to each comment.
- This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
- If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
First of all, thank you for web google map module it is great, I installed courier third-party module in odoo 10 enterprises, the map future working fine inside the module but not working with customers directory, auto address complete not working when creating new customer. Any Advise?
root between two partners locations
Hi Yopi,how to draw root between any two partners from map view?
Reply to Yopi Angi
Thanks for helping bro. it's great module
Reply to souna101
Hi Souna, this is a base module for map view. I have split the functionality shown on this module into different modules. For example, if you want to have a map view in your Contacts menu, you can download module contacts_maps. If you want map view + route in your sale > customers, you can download module sale_maps. Thanks
routes, map buttons not appear on partner form
I've installed this module in Odoo 10 on fresh database ,module work but route and map smart buttons not appears on the partner form
Hi, Have you got this module in V11 ? Thanks, Manish
Reply to email@example.com
Hi Randal! Thanks for reporting the issue, I've fixed it, you download the module again or clone my repo. Sorry for late response, I don't received notification when someone put a comment.
Great module but getting a small bug maybe you can tell me how to fix
Hi! The module works great but I found a small problem. After I select something from the Geolocation fields the dropdown that says "Powered by google" and my selection keeps showing. Any idea why this could be?
Cool and perfect
The app works perfect. It would be great to add some documentation either in the app or expand the index.html page. You still need to make a Google project and allow the correct API's before the app will work. It would be nice if this was documented :)
Doesn't work on v10 Enterprise
Hi, I've installed your module, but when loading the view in the customers list I got this error. Cannot read property 'getSouthWest' of undefined. at MarkerCluster. ..... .... And when creating a new customer, there isn't an autocomplete and he sets the customers name to 'undefined' when I save. What am I doning wrong?
Odoo V11 version
hi, will there be a version 11 soon? thanks
Hi Yopi, I tried to move map and it generated error, Script error. :0 Traceback: tried to click OK and also tried to close the dialog but no gain. I also sent details of instance to you on your email id. thanks
Reply to @Malik Sikandar Hayat
Hi Malik, Thank you. When you click the map button on customer form, could you try to move the map? here is my email firstname.lastname@example.org if you want to discuss it.
Need to fix one issue?
Hi, I tried locally and on AWS and only issue I am facing is that on customer when I click on Map nothing is displaying but when I try route and other options all working fine. Locally without api key all fine but when I enter api key even in local instance same issue. I have unrestricted api key so no idea what is wrong... Kindly need guidance if contact information can be provided can share credentials to check online. thanks
Reply to @Francesco Maioli
Hi Francesco Maioli, Thank you. Yeah, of course we can collaborate :) you can start by create an issue on my github.
Reply to @pat
Hi Pat, the version 11 is still on progress
Very good job!
Hi, 2 questions: how to define my geolocation? It would be great to select 2 or more partners and find a route around them, not only form company to partner. What do you think? I may collaborate if you are interested
Is this v11 ready?
Hi Wilhelm Pelleboer, Yeah, I think it's possible. Could you give me an information of how and what you expect this module (the map) on crm module? Maybe better if you can create and describe it on a document and share it to me :) Thanks
Worsk great! Please make it work for leads / prospects also?
Now we can see partner on maps,! thnx! but is it possible to make it work for lead / prospects also? Tnx!
Hi Ramón Fernández, To manage such number of records. I think create a script is the best way. (be aware with google API usage limits -- https://developers.google.com/maps/documentation/geocoding/usage-limits). Hope this helpful Thanks
Hi, After installation, we have to click for each record the button geolocalization, (to be show it on map) we have more than 5000 records, there is another way to do it? Thanks Really great module!!!!
Hi @Selva Kumar For your API key, you need to enable some google maps APIs and services. here: https://drive.google.com/open?id=0B_xCj4hXfuUyZnB1dGhWUXc3d2M, list of APIs and services I used (of course, you don't have to enable all APIs and services like mine but I recommend you to enable APIs and services related to google maps). Hope this helpful, thanks.
Map not displaying because of api
Hai..Thanks for this module.i created api key and paste it over there but still am getting noapikey and missingapi key error....can u tell me how to use api in your module ...
Hi @mofel, That strange . The geolocate button on partner's form is an action button, this button will execute python code (not JS code). In case if you wondering where is the code, you can it find here: https://github.com/odoo/odoo/blob/10.0/addons/base_geolocalize/models/res_partner.py#L10 And I just tested the module on fresh DB and I don't have the error (I'm using the latest version of Odoo v10.0c) If you don't mind to give me an access to your Odoo instance , that's great :)
@Yopi: I tested on two databases (one fresh almost new that i use for testing and a copy of the production one). We are on Odoo 10 Enterprise hosted in a remote datacenter so i'm sure the problem doesn't come from Internet connection. I also tested on two laptops (with Safari and Chrome) as i thought it was may be an ajax call problem i checked the js console. I don't have errors but also i don't see the call to https://maps.googleapis.com ... May be you want a log / passwd of a fresh installation ? Thanks for your help Mofel
Hi @mofel, Can you try it again to see if the error are still persist? During the development and testing (on several different databases) I haven't faced this kind of issue. Can make sure if your internet connection is stable? Thanks
Cool Apps !
Hi, Very cool Module that seems to work well but i have a small problem ! Everything is working find (routes, maps view, autocomplete ...) but when i click on "Geolocalised Button" in partner view it loads during 2 minutes than i have the following error: " \"/usr/lib/python2.7/site-packages/odoo/addons/base_geolocalize/models/res_partner.py\", line 17, in geo_find\n raise UserError(_('Cannot contact geolocation servers. Please make sure that your Internet connection is up and running (%s).') % e)\nUserError: (u'Serveurs de g\\xe9olocalisation injoignables. V\\xe9rifiez que la connexion internet est configur\\xe9e et active (Extra data: line 1 column 3 - line 74 column 1 (char 2 - 2103))', None)" Do you have any idea about that ? Thanks
Ok Yopi, thanks for your help, the problem must be that I'm using the online version.
Hi Laurent, I guess, you were trying to install the module by using feature "import module" I suggest you to extract the zip file and put the extracted file in your Odoo addons. Hope this helpful. Thanks.
Yes it exist and is installed Last try's message was : Error while importing module 'web_google_maps': without description
Hi Laurent can you check the module "website_google_map" exists in your Odoo server (Apps menu)?
Error message when importing
Error while importing module 'web_google_maps': u'D\xe9pendances du module non satisfaites : website_google_map\nNone' any idea of what's wrong ?
Great module. Thank you!
Hi @yopi, Thank you. That helped.
Hi @Eduard, To see the buttons, you have to set partner geolocation (partner form > Partner Assignation tab > Geolocate button) first. Hope this helpful. Thanks.
The buttons on the partner form are not displayed. What could be the problem? Thanks!
New update (add route feature)
Thanks @Mariangel Montenegro and @ghandi for inspire me to add those feature.
API key didn't work
@Mariangel Montenegro: Thank you. I followed the same steps to generate the Api Key, without doing any Key Restriction, and put it in Settings / Technical / System Parameters with name "google_maps_api_key " => Unfortunately I still can't see the map
Getting Google Maps API key...
ghandi: Yes, Google API key is mandatory. There are tons of videos and manuals how to get it... for example https://www.wpgmaps.com/documentation/creating-a-google-maps-api-key/ Once you have it, go to Settings and Activate Developer Mode. Then Settings / Technical / System Parameters - update google_maps_api_key with your key. Same add also to Website Settings / Settings / Settings
Google Maps API key
How do I generate the API Key from : https://console.developers.google.com/apis/api/static_maps_backend/overview?project= Is it mandatory so as to show the maps in Odoo ?
Just few notes for those who are trying to make it work: 1) install also visible_search_menu - definitely adds 1 more level to the functionality, 2) set up your Google Maps API key - Settings / System Settings; 3) when you get an error about the missing template, don't worry, just restart Odoo; 4) when playing on your local pc, note that you need internet to show the maps. For Yopi: 1) For some reason the autocomplete is not perfect. I have Street+Street2 and it adds first house number (as Street) and only then street number (as Street 2). Then geolocation might not work well, just approximately. 2) If you would add route functionality from partner_external_map, it would be perfect! Thank you for truly an excellent job!