Leaflet Map View (OpenStreetMap)

web_view_leaflet_map
REPOSITORY
REPOSITORYOCA/geospatial
GIT
GIThttps://github.com/OCA/geospatial.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/geospatial/tree/18.0/web_view_leaflet_map
VERSION
VERSION 1.1.2
CATEGORY
CATEGORYExtra Tools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP
COMMITTERS
COMMITTERSSylvain LE GAL, Weblate, OCA-git-bot, Mourad, oca-ci, Thibault Rey
WEBSITE
WEBSITEhttps://github.com/OCA/geospatial
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/geospatial:
    - web_leaflet_lib
odoo/odoo:
    - base_geolocalize
    - base_setup
    - base
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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.

![](../static/description/view_res_partner_map_precise.png)

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.

![](../static/description/view_res_partner_map_large.png)

Code Analysis

Views touched (0)

No views 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
REPOSITORY
REPOSITORYOCA/geospatial
GIT
GIThttps://github.com/OCA/geospatial.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/geospatial/tree/16.0/web_view_leaflet_map
VERSION
VERSION 2.0.0
CATEGORY
CATEGORYExtra Tools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP
COMMITTERS
COMMITTERSSylvain LE GAL, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/geospatial
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:59
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/geospatial:
    - web_leaflet_lib
odoo/odoo:
    - base_geolocalize
    - base_setup
    - base
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (0)

No views 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
REPOSITORY
REPOSITORYOCA/geospatial
GIT
GIThttps://github.com/OCA/geospatial.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/geospatial/tree/12.0/web_view_leaflet_map
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYExtra Tools
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP
COMMITTERS
COMMITTERSSylvain LE GAL, GitHub, OCA-git-bot, oca-ci, Stéphane Brunner
WEBSITE
WEBSITEhttps://github.com/OCA/geospatial
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:25
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base_geolocalize
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
assets_backend assets_backend ir.ui.view qweb Inherits web.assets_backend
Models touched (4)

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

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • session_info(self)

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
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/geospatial
PULL REQUEST
PULL REQUEST[17.0][MIG] web_view_leaflet_map (#415)