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.
Release files for odoo-addon-web-view-google-map 19.0.1.0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| odoo_addon_web_view_google_map-19.0.1.0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / odoo_addon_web_view_google_map-19.0.1.0.2.1-py3-none-any.whl
| Download URL | odoo_addon_web_view_google_map-19.0.1.0.2.1-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6fd751b317bfc926d3b38e58aa2ca54f9803de3aa86de070360fec5c3fc30248
|
|
BLAKE2b-256 checksum How to use checksums |
408ce05e3ae749a78cf263bced13eae0fa9ad667a2c8eef6c1647628c67f3578
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|