Skip to content
Health
100/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by25/25
    5 modules depend on it
  • Maturity25/25
    In 13 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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
odoo/odoo:
- web
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 IDNameModelTypeStatus
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)
  • name Char
  • tech_name Char
    string='Technical Name'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • geo_find(self, addr, **kw)
    @api.model
    Use 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.model
    Converts 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_key Char
    config_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_id Many2one → base.geo_provider
    config_parameter='base_geolocalize.geo_provider' default=<expr> string='API' args: 'base.geo_provider'
  • geoloc_provider_techname Char
    readonly=True related='geoloc_provider_id.tech_name'
Public methods (1)
  • set_values(self)

New fields (2)
  • date_localization Date
    string='Geolocation Updated On'
  • should_be_geolocalized Boolean
    compute='_compute_should_be_geolocalized' default=False help="Indicates whether the partner's address has changed, so we should geolocalize them from their new address." readonly=False store=True
Public methods (2)
  • geo_localize(self)
  • write(self, vals)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…