Technical Name |
google_maps_widget
|
License | OPL-1 |
Introduction
This Odoo module introduces an interactive Google Maps widget that can be embedded into form views using existing latitude and longitude fields. Users can search for a location and adjust it by dragging markers on the map, significantly improving geolocation accuracy and user experience. Ideal for managing customer addresses, field service entries, or warehouse locations, this widget enhances location-based workflows with intuitive visual mapping integration
Key Features
Embed an interactive Google Map within Odoo form views using latitude and longitude fields
Allow users to search, select, and drag map markers to set accurate locations
Seamless mapping integration with minimal setup—leveraging existing fields
Lightweight UX enhancement for improved data input and usability
Benefits
Enhances data entry accuracy with visual and interactive mapping controls
Reduces user errors by allowing direct location adjustments via map markers
Streamlines workflows for address, field service, and logistics-related data inputs
Offers a polished, user-friendly interface that elevates Odoo form interaction
Integrates gracefully without requiring complex configuration or additional modules
Compatibility & Technical Details
Technical Name: google_maps_widget
Functionality: Adds a frontend map widget to Odoo form views, relying on latitude (lat) and longitude (lng) fields for location display and selection. Users can interactively set locations via searches or marker drags
License and Dependencies: Not explicitly specified in source materials; typical implementations may require inclusion of the Google Maps JavaScript API key.
Installation Steps (general guidance):
Place the google_maps_widget module in your custom addons directory.
Update the module list in Odoo’s developer mode.
Install the module.
Add the map widget to desired fields in your form view XML, e.g.:
<field name="latitude" widget="google_map_widget" options="{'latitude_field':'lat', 'longitude_field':'lng'}"/>Ensure Google Maps API key is configured if required, to enable map display and search functionality.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.