Skip to content

[18.0][ADD] fleet_maps: new module - #241

Open
douglascstd wants to merge 1 commit into
OCA:18.0from
douglascstd:18.0-add-fleet_maps
Open

douglascstd wants to merge 1 commit into
OCA:18.0from
douglascstd:18.0-add-fleet_maps

Conversation

@douglascstd

@douglascstd douglascstd commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

New module fleet_maps: a generic map view for fleet vehicles, based on
web_view_leaflet_map.

Features

  • A leaflet_map view for fleet.vehicle, using stored map fields:
    latitude, longitude, marker title, marker address and last update.
  • A Fleet Map action and menu entry under Fleet > Vehicles, showing
    only the vehicles that have a position.
  • A smart button and a Map page in the vehicle form, with an embedded
    OpenStreetMap preview.
  • Extension point _get_map_position_values() so other modules (e.g.
    telemetry integrations) can provide the position data without depending
    on a specific map implementation.

Tests

Unit tests cover the default computed values, the map preview with and
without position, the actions and the data records.

How to test

  1. Install fleet_maps.
  2. Go to Fleet > Vehicles > Fleet Map: only vehicles with a position are
    shown.
  3. Open a vehicle form: a Map smart button and a Map page with the
    OpenStreetMap preview are available.

@douglascstd
douglascstd marked this pull request as ready for review October 14, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants