Files
odoo_source/addons/base_geolocalize
Saurabh Choraria 2a9d0ce128 [FIX] base_geolocalize: update log when request to openstreetmap fails
When the user will not get an HTTP response as 200 while retrieving the location
using OpenStreetMap Nominatim service, the logger error will occur.

The logger is updated to use the 'warning' level instead of the 'error' level.
This change reflects a less severe logging level for cases where a request to
OpenStreetMap fails.

sentry-4151622143

closes odoo/odoo#125835

X-original-commit: a73a65efc0daa702b6a3fd40ad63d2ef39ace302
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
2023-06-21 15:53:15 +02:00
..
…
2023-05-22 17:52:07 +02:00
…

Partner geolocalize

Contacts geolocation API to convert partner addresses into GPS coordinates.

Configure

You can configure in General Settings the default provider of the geolocation API service.

A method _call_<service> should be implemented in object base.geocoder that accepts an address string as parameter and return (latitude, longitude) tuple for this to work. If no default provider is set, the first one will be used by default.

An optional method _geo_query_address_<service> which takes address fields as parameters can be defined to encode the query string for the provider.