Skip to main content
Odoo Community Association

Google Map View

Beta License: AGPL-3 OCA/geospatial Translate me on Weblate Try me on Runboat

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

  1. Install Google Maps Integration (base_google_map).

  2. Go to Settings → Google Maps Integration.

  3. Set your Google Maps API key and enable the Places / Geometry libraries as needed.

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

Authors

  • Open Source Integrators

  • Gray Matter Logic

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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:

gityopie wolfhall

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_web_view_google_map-19.0.1.0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_web_view_google_map-19.0.1.0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6fd751b317bfc926d3b38e58aa2ca54f9803de3aa86de070360fec5c3fc30248
MD5 b920151b495c60c0983b0d6a9474dd84
BLAKE2b-256 408ce05e3ae749a78cf263bced13eae0fa9ad667a2c8eef6c1647628c67f3578

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page