Skip to content
Health
83/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 10 months ago
  • Required by20/25
    2 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 12.0

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

Security findings
Grave / minor (static analysis)
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.32 MB
Module directory on disk
Code analysis 1 migration note 3 models 0 views 0 HTTP endpoints

Description

This module extends odoo views, to add a new kind of view, named leaflet_map that is using the Leaflet javascript library to use maps. (https://leafletjs.com/) This library is for exemple, used in the OpenStreetMap project. (https://www.openstreetmap.org/)

You can see a simple usage in the module web_view_leaflet_map_partner in the same OCA repository that displays your contact in a map, if latitude and longitude are defined. (To define latitude and longitude, refer to the Odoo module base_geolocalize)

A marker will be displayed for each item that has a localization.

If user zooms out, the markers will overlap, which won't be very visible.

In that case, nearby markers are grouped together, thanks to Leaflet.markercluster plugin.

Dependencies

Odoo dependencies
OCA/geospatial:
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
route_planning, web_view_leaflet_map_partner

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 0

No views found for this module.

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 3

New fields (1)
  • view_mode Selection
    ondelete={'leaflet_map': 'cascade'} selection_add=[('leaflet_map', 'Leaflet Map')]
Public methods (0)

No public methods.

New fields (1)
  • type Selection
    selection_add=[('leaflet_map', 'Leaflet Map')]
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • get_default_leaflet_position(self, model_name)
    @api.model

Loading…

Loading…

Loading…