| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) |
| Community Apps Dependencies | Show |
| Lines of code | 1467 |
| Technical Name |
dom_map_view_geolocalize |
| License | OPL-1 |
| Website | https://demo18.domiup.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) |
| Community Apps Dependencies | Show |
| Lines of code | 1467 |
| Technical Name |
dom_map_view_geolocalize |
| License | OPL-1 |
| Website | https://demo18.domiup.com |
Map View Geolocalize
This addon adds optional address geolocation tools to Map View.
It keeps dom_map_view focused on rendering markers while delegating address-to-coordinate conversion to base_geolocalize.
Users must configure a geolocation provider in Odoo before geocoding and reverse-geocoding features can work. The standard base_geolocalize setup exposes two provider values: Open Street Map and Google Place Map.
When installed, map views with a partner source expose a Refresh action that geolocalizes the currently visible partner records and reloads the map.
It also supports pick-on-map flows for models other than res.partner when the action context provides dom_map_target_res_model and dom_map_target_record_id. If no target model is provided, res.partner remains the default.
Live preview is always available for you to have a look.
Using these login accounts to experience the features
| Login | Password | Role |
|---|---|---|
| demo | demo | Manager |
Usage
Install base_geolocalize and configure a geolocation provider in Odoo.
Available provider values in the standard Odoo settings are:
- Open Street Map: no API key is required, but the public Nominatim service is rate-limited and should be used only for low-volume requests.
- Google Place Map: requires a valid Google Map API Key in the base_geolocalize settings before geocoding and reverse geocoding can succeed.
Install dom_map_view_geolocalize in addition to dom_map_view.
Open a Map View backed by res.partner or by a model using a many2one partner field.
Use Refresh to geolocalize the records currently loaded in the map view. The map reloads after the request so newly geolocalized partners can appear immediately.
In a partner map view, click any point on the map to open a new partner form prefilled with latitude, longitude, and any address parts returned by the configured reverse geocoding provider.
In the partner form, the Geolocation group also gets a Pick on map button. It opens the map in selection mode; clicking a point updates that existing partner with the picked coordinates and reverse-geocoded address.
Other models can reuse the same pick-on-map flow by setting dom_map_pick_mode, dom_map_target_record_id, and optionally dom_map_target_res_model in the action context. When dom_map_target_res_model is omitted, the helper defaults to res.partner.
Before calling write(), the helper keeps only values whose fields exist on the target model. This lets the same reverse-geocoding result be reused safely across models that do not implement the full partner address field set.
You can also configure a default fallback focus when the map has no marker data.
Example:
<dom_map partner_field="id" panel_title="Contacts" focus_scope="city" focus_source="user"> <field name="display_name" string="Name"/> <field name="email" string="Email"/> </dom_map>
Recommended defaults:
- focus_source="user" for user-specific working areas
- focus_scope="city" for most operational map views
- focus_scope="country" for broad overview maps
- default_zoom="..." only when you need tighter manual control than the semantic scope provides
Interaction flags:
- Set create="false" or create="0" to disable adding a new partner from map clicks.
- Set edit="false" or edit="0" to disable updating an existing partner through pick-on-map mode.
- Set geolocalize="false" or geolocalize="0" to hide Refresh even when the user has permission to geolocalize.
Example with geolocalization disabled:
<dom_map partner_field="id" panel_title="Contacts" geolocalize="false"> <field name="display_name" string="Name"/> <field name="email" string="Email"/> </dom_map>
Notes:
- This addon geolocalizes only the currently visible records, not the whole model.
- It requires address data usable by the configured base_geolocalize provider.
- With the Open Street Map provider (openstreetmap), the addon geolocalizes only one partner per action to avoid Nominatim rate-limit failures.
- With the Google Place Map provider (googlemap), make sure the configured API key has access to the Google geocoding endpoints used by base_geolocalize.
- In pick mode with partner_field="id", the target model must expose its own latitude and longitude fields, typically partner_latitude and partner_longitude.
- It does not add any migration script or background cron.
Explore our Map View related modules on the Odoo App Store
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module