Skip to Content
GeoLocation Map Widget
geolocation_map_widget

GeoLocation Map Widget

A map field widget to pin a location and retrieve its address.

  • Odoo 17
  • Tools & Administration
  • 17.0.1.0.0
1

Overview

Entering addresses by hand is slow and error-prone. This module adds a GeoLocation Map widget that extends the Char field and shows a map where the user pins a place. The address of the selected point is filled back into the field. It depends only on the base app. The benefit is accurate addresses picked visually.

2

Usage steps

  1. 1

    Register the widget

    The module registers geolocation_map in the fields registry with the display name GeoLocation Map Viewer. It extends the standard Char field component. A template adds the map button.

    • Registry: fields
    • Display name: GeoLocation Map Viewer
  2. 2

    Add it to a view

    A developer applies widget="geolocation_map" to a Char address field. The field then shows a map button next to the text. Views without the attribute are unchanged.

    • Attribute: widget
    • Char field required
  3. 3

    Open the map and pin a place

    The user presses the map button and clicks a point on the map. The marker moves to the chosen position. The coordinates are used to look up the address.

    • Interactive map
    • Marker follows the click
  4. 4

    Receive the address

    The resolved address text is written into the field. The user can still edit it before saving. The record then stores it as normal text.

    • Address filled automatically
    • Editable before save
4

Roles

Benefiting roles
Role
All users editing address fields
Odoo developers
5

Dependencies

Back to version applications

Want to know more or try this app? Contact us

We can arrange a demo or a trial and answer your questions about GeoLocation Map Widget.

Contact us