Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 560 |
Technical Name |
google_map_field |
License | LGPL-3 |
Google Map Field Widget for Odoo
This Google Map field widget is designed for use in your Odoo application. It allows users to enter addresses efficiently by integrating Google Maps, providing address suggestions as they type. The selected address is then stored in the field for later use, and users can interact with the map to visually update the address.
The widget is linked to a char field with the widget property set to google_map_field.

How the Google Map Field Works:
- Activate Google Maps API: Before using the widget, you must activate your Google Maps API key once. The key is necessary to enable the address search and map functionalities. If you don't have an API key, you can easily obtain one from the Google Maps Platform.
-
Start Typing an Address: As soon as the user starts typing an
address in the field, the widget communicates with Google Maps to suggest
possible address matches in real-time. This provides an easy way to find the
correct address without having to manually enter the full details.
- Select an Address: After typing, the user can choose from the list of suggested addresses. Once an address is selected, it is automatically saved to the field. The selected address is stored in its proper format, ready for use throughout the application.
-
Open the Map View: To ensure the address is correct, the user
can click the pin icon. This opens a map view of the selected address, which
provides a visual representation of the location.
- Update the Address on the Map: If the user wants to make adjustments to the selected address, they can drag the pin on the map to a new location. The address will automatically update to reflect the new position, ensuring that the stored address is always accurate.
Note: The widget only requires the Google Maps API key to be activated once. If the API key is missing or incorrect, the widget will not function properly, so make sure to enter a valid API key.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedHelp me, pls
Sir, your app is very useful, but I don't have MapRenderer. When I deleted that import and entered the address, it wasn't real-time. I hope you can assist me with this.
Re: Help me, pls
sorry for long responding, this app does not need MapRenderer even though having it imported
i have removed it in the last update
There are no comments yet!