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.
Usage steps
- 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
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
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
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
Screens
Illustrative mockups with placeholder data.
Roles
| Role |
|---|
| All users editing address fields |
| Odoo developers |
Dependencies
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.