Skip to content

[19.0][MIG] web_leaflet_lib + web_leaflet_draw_lib: Migration to 19.0#1

Open
dnplkndll wants to merge 4 commits into
19.0from
19.0-mig-web_leaflet_lib
Open

[19.0][MIG] web_leaflet_lib + web_leaflet_draw_lib: Migration to 19.0#1
dnplkndll wants to merge 4 commits into
19.0from
19.0-mig-web_leaflet_lib

Conversation

@dnplkndll
Copy link
Copy Markdown

@dnplkndll dnplkndll commented May 17, 2026

Summary

Migrates both web_leaflet_lib (the base Leaflet JS wrapper) and web_leaflet_draw_lib (the Leaflet.draw editing toolkit on top) from 18.0 to 19.0. Bundled together because web_leaflet_draw_lib depends on web_leaflet_lib and OCA's CI rejects unreleased deps — separating into two PRs would leave the draw_lib PR red until the lib PR merges, and both modules are tiny JS-asset wrappers (manifest version bumps only, no Python/XML changes).

What changed per module

web_leaflet_lib (commit 178b97d)

  • Manifest version 18.0.1.1.019.0.1.0.0
  • No other changes — models/ir_http.py (session_info() super call), hooks.py (post_init_hook(env)), data/ir_config_parameter.xml, and the assets globs all work unchanged in 19.0

web_leaflet_draw_lib (commit d96b297)

  • Manifest version 18.0.1.0.019.0.1.0.0
  • Assets-only module (CSS + JS for Leaflet.draw); no Python, no XML data, no views

Why on the ledoent fork (not OCA upstream)

OCA/geospatial 19.0 is mostly empty — only base_geoengine has an upstream MIG PR (OCA#446). We need these JS libs to unblock farm_field_geo's in-form polygon editing in the farm-pack, so we migrate on our fork first and pin via workspace repos.yaml. Upstream PR follows once install-validated locally.

What it unblocks

  • In-form polygon editing in farm_field_geo (ledoent/farm-pack PR base_geoengine_demo: javascript errors  OCA/geospatial#2) — the geo_edit_map widget's vertex-drag UX comes from Leaflet-Geoman (shipped here as leaflet.draw.js)
  • Any future OCA/geospatial 19.0 module that depends on Leaflet (web_view_leaflet_map, web_view_leaflet_map_partner)

Test plan

  • Manifests bumped, pre-commit clean (no Python/XML changes to lint)
  • Local doodba install once the full geo stack (base_geoengine PR [19.0][MIG] base_geoengine: migrate to 19.0 OCA/geospatial#446 + this PR) is pinned in industry-packs repos.yaml
  • Visual: a base_geoengine GeoPolygon field renders with Leaflet-Geoman draw controls (edit vertex, delete polygon, draw new)

Follow-up

Once base_geoengine PR OCA#446 merges upstream we can build a clean dependency chain and upstream this combined MIG to OCA/geospatial as well.

@dnplkndll dnplkndll changed the title [19.0][MIG] web_leaflet_lib: Migration to 19.0 [19.0][MIG] web_leaflet_lib + web_leaflet_draw_lib: Migration to 19.0 May 17, 2026
The handle had a trailing apostrophe ("NL66278'") inherited from
the 18.0 manifest. Fixing while we touch the manifest so OCA's bot
maintainer-tagging machinery resolves the real GitHub handle.
@dnplkndll dnplkndll force-pushed the 19.0-mig-web_leaflet_lib branch from 5a603c8 to 8dbbb0b Compare May 18, 2026 15:01
@dnplkndll dnplkndll closed this May 18, 2026
@dnplkndll dnplkndll reopened this May 18, 2026
@dnplkndll dnplkndll closed this May 19, 2026
@dnplkndll dnplkndll reopened this May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant