Web Google Maps

by
Odoo 11
v 10.0 v 11.0 v 12.0 Third Party 6554
Download for 10.0 series Deploy on Odoo.sh
You bought this module and need support ? Click here !
Technical name web_google_maps
LicenseAGPL-3
Read description for v 12.0 v 11.0
Technical name web_google_maps
LicenseAGPL-3
Read description for v 12.0 v 11.0

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.
  • New widget gplaces_address_form, enabled 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)
  • New widget gplaces_autocomplete, enabled 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

Routes

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

Bug Tracker

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.

Contributors

Maintainer

This module is maintained by myself, if you are interested to contribute please let me know

ko-fi

Thank you

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.
Please choose a rating from 1 to 5 for this module.
Odoo
Great
by on

Hi there, when i installed this base module or contact map there's always error like this An unknown CORS error occured. The error probably originates from a JavaScript file served from a different origin. (Opening your browser console might give you a hint on the error.) when i open the console all your module css/jss not found 404 any idea why?


Odoo
by on

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?


Odoo
root between two partners locations
by on

Hi Yopi,how to draw root between any two partners from map view?


Odoo
Reply to Yopi Angi
by on

Thanks for helping bro. it's great module


Odoo
Reply to souna101
by on

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


Odoo
routes, map buttons not appear on partner form
by on

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


Odoo
by on

Hi, Have you got this module in V11 ? Thanks, Manish


Odoo
Reply to randall.vargas@iica.int
by on

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.


Odoo
Great module but getting a small bug maybe you can tell me how to fix
by on

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?


Odoo
Cool and perfect
by on

Odoo
Works perfect
by on

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 :)


Odoo
Doesn't work on v10 Enterprise
by on

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
Odoo V11 version
by on

hi, will there be a version 11 soon? thanks


Odoo
by on

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


Odoo
Reply to @Malik Sikandar Hayat
by on

Hi Malik, Thank you. When you click the map button on customer form, could you try to move the map? here is my email yopiangi@gmail.com if you want to discuss it.


Odoo
Need to fix one issue?
by on

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


Odoo
Reply to @Francesco Maioli
by on

Hi Francesco Maioli, Thank you. Yeah, of course we can collaborate :) you can start by create an issue on my github.


Odoo
Reply to @pat
by on

Hi Pat, the version 11 is still on progress


Odoo
Very good job!
by on

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


Odoo
by on

Is this v11 ready?


Odoo
by on

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


Odoo
Worsk great! Please make it work for leads / prospects also?
by on

Now we can see partner on maps,! thnx! but is it possible to make it work for lead / prospects also? Tnx!


Odoo
by on

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


Odoo
by on

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!!!!


Odoo
by on

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.


Odoo
Map not displaying because of api
by on

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 ...


Odoo
by on

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 :)


Odoo
by on

@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


Odoo
by on

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


Odoo
Cool Apps !
by on

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


Odoo
by on

Ok Yopi, thanks for your help, the problem must be that I'm using the online version.


Odoo
by on

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.


Odoo
by on

Yes it exist and is installed Last try's message was : Error while importing module 'web_google_maps': without description


Odoo
by on

Hi Laurent can you check the module "website_google_map" exists in your Odoo server (Apps menu)?


Odoo
Error message when importing
by on

Error while importing module 'web_google_maps': u'D\xe9pendances du module non satisfaites : website_google_map\nNone' any idea of what's wrong ?


Odoo
Great module. Thank you!
by on

Hi @yopi, Thank you. That helped.


Odoo
by on

Hi @Eduard, To see the buttons, you have to set partner geolocation (partner form > Partner Assignation tab > Geolocate button) first. Hope this helpful. Thanks.


Odoo
by on

The buttons on the partner form are not displayed. What could be the problem? Thanks!


Odoo
New update (add route feature)
by on

Thanks @Mariangel Montenegro and @ghandi for inspire me to add those feature.


Odoo
Bingo !!
by on

@Mariangel Montenegro : It works now. Actually I didn't activate Google Maps Javascript API and others API. Thanks man Great Job Yopi ! NB : As Mariangel said, adding route functionality from partner_external_map will be more interesting


Odoo
API key didn't work
by on

@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


Odoo
Getting Google Maps API key...
by on

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


Odoo
Google Maps API key
by on

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 ?


Odoo
Works great!
by on

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!