Google Map View
This module adds a Google Maps view type and Places autocomplete field widgets to the Odoo web client.
Features:
google_map view mode to display geolocated records on Google Maps
Marker colors from view attributes (color / colors)
Marker clustering
Field widgets gplaces_autocomplete and gplaces_address_form
Table of contents
Configuration
Install Google Maps Integration (base_google_map).
Go to Settings → Google Maps Integration.
Set your Google Maps API key and enable the Places / Geometry libraries as needed.
Restrict the key in Google Cloud Console to your Odoo origins and the Maps JavaScript API / Places API.
Usage
Google Map view
Add a google_map view on any model that stores latitude/longitude:
<record id="view_partner_google_map" model="ir.ui.view">
<field name="name">res.partner.google_map</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<google_map
string="Map"
lat="partner_latitude"
lng="partner_longitude"
colors="blue:company_type=='person';green:company_type=='company';"
>
<field name="partner_latitude" />
<field name="partner_longitude" />
<field name="display_name" />
<field name="company_type" />
</google_map>
</field>
</record>
Include google_map in the action view_mode, for example list,form,google_map.
Contacts already expose a Google Map mode on the partner action.
Places widgets
<field
name="street"
widget="gplaces_address_form"
options="{'lat': 'partner_latitude', 'lng': 'partner_longitude'}"
/>
<field
name="name"
widget="gplaces_autocomplete"
options="{'lat': 'partner_latitude', 'lng': 'partner_longitude'}"
/>
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 to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Yopi Angi <yopiangi@gmail.com>
Wolfgang Hall <whall@opensourceintegrators.com>
Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
Ammar Officewala <aofficewala@opensourceintegrators.com>
-
Maxime Chambreuil <maxime.chambreuil@graymatterlogic.com>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
Current maintainers:
This module is part of the OCA/geospatial project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_web_view_google_map-19.0.1.0.0.4-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_web_view_google_map-19.0.1.0.0.4-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ebf926bc147fd750bd5ac992f86e19f194e76386e396945faf6fb3034e7f89b
|
|
| MD5 |
3f00062f46334f44a01b28d04e56b8e9
|
|
| BLAKE2b-256 |
a53708a462b213722305382bcbe1b8f56805c283c9292d5420665cc77612c516
|