Health
100/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by25/255 modules depend on it
-
Maturity25/25In 13 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
5
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.49 MB
Module directory on disk
Code analysis
0 migration notes
4 models
3 views
0 HTTP endpoints
Description
Partners Geolocation
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- hr_attendance, pos_self_order, website_crm_partner_assign, website_google_map, website_sale_collect
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings.view.form.inherit.web.geoloclaize | res.config.settings | form | Inherits base_setup.res_config_settings_view_form |
view_crm_partner_geo_form |
res.partner.geolocation.inherit | res.partner | form | Inherits base.view_partner_form |
view_geo_provider_form |
base.geo_provider.form | base.geo_provider | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (2)
-
nameChar -
tech_nameCharstring='Technical Name'
No public methods.
New fields (0)
No new fields.
Public methods (2)-
geo_find(self, addr, **kw)@api.modelUse a location provider API to convert an address string into a latitude, longitude tuple. Here we use Openstreetmap Nominatim by default. :param addr: Address string passed to API :return: (latitude, longitude) or None if not found -
geo_query_address(self, street=None, zip=None, city=None, state=None, country=None)@api.modelConverts address fields into a valid string for querying geolocation APIs. :param street: street address :param zip: zip code :param city: city :param state: state :param country: country :return: formatted string
New fields (3)
-
geoloc_provider_googlemap_keyCharconfig_parameter='base_geolocalize.google_map_api_key'help='Visit https://developers.google.com/maps/documentation/geocoding/get-api-key for more information.'string='Google Map API Key' -
geoloc_provider_idMany2one → base.geo_providerconfig_parameter='base_geolocalize.geo_provider'default=<expr>string='API' args: 'base.geo_provider' -
geoloc_provider_technameCharreadonly=Truerelated='geoloc_provider_id.tech_name'
-
set_values(self)
New fields (2)
-
date_localizationDatestring='Geolocation Updated On' -
should_be_geolocalizedBooleancompute='_compute_should_be_geolocalized'default=Falsehelp="Indicates whether the partner's address has changed, so we should geolocalize them from their new address."readonly=Falsestore=True
-
geo_localize(self) -
write(self, vals)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…