Skip to content

[19.0][MIG] web_leaflet_lib: Migration to 19.0#464

Open
agiuseppe28 wants to merge 21 commits into
OCA:19.0from
agiuseppe28:19.0-mig-web_leaflet_lib
Open

[19.0][MIG] web_leaflet_lib: Migration to 19.0#464
agiuseppe28 wants to merge 21 commits into
OCA:19.0from
agiuseppe28:19.0-mig-web_leaflet_lib

Conversation

@agiuseppe28

Copy link
Copy Markdown

Migration of web_leaflet_lib to 19.0.

  • History preserved via git format-patch | git am from 18.0 (original authors kept).
  • Version bumped to 19.0.1.0.0.
  • Depends only on base; no functional change — vendored Leaflet assets carried over as-is.
  • Module has no tests; installs cleanly on a fresh 19.0 database; the ir.http.session_info() override and the ir.config_parameter defaults (leaflet.tile_url, leaflet.copyright) were verified locally, and the static Leaflet assets are served correctly.

web_leaflet_lib was not listed in the migration checklist of #413 (added on 18.0 after that issue was generated — see the missing-modules FAQ).

cc @legalsylvain (original author/maintainer).

legalsylvain and others added 20 commits June 17, 2026 16:20
…aflet_lib, to be used by other modules, like 'web_widget_map'. (see : OCA/web#2953)
- Bump version.
- Remove obsolete hook. (that was usefull during the refactoring done here OCA#380)
Currently translated at 100.0% (1 of 1 strings)

Translation: geospatial-17.0/geospatial-17.0-web_leaflet_lib
Translate-URL: https://translation.odoo-community.org/projects/geospatial-17-0/geospatial-17-0-web_leaflet_lib/it/
Odoo minifies javascript sources when adding those to asset bundles. Having
the unminified versions available is needed for debugging. The OCA
contributor guidelines state: 'Never add minified Javascript libraries'.
…mo data

Adding "leaflet.tile_url" ir.config_parameter even without demo data. The demo value of leaflet.tile.url is defined in the post init hook.
Rational: for the time being, nearby markers are not very visible.
With this plugin, markers are grouped if it's not possible to display all markers.
also it is possible to see markers that are in the same address. (that is not possible for the time being
Comment thread web_leaflet_lib/readme/CONTRIBUTORS.md Outdated
@@ -1 +1,2 @@
- Sylvain LE GAL (<https://www.twitter.com/legalsylvain>)
- Giuseppe Ardoselli (<https://github.com/agiuseppe28>)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for porting this module.
Not sure that asking to an IA to migrate a module, and just bump a version in a manifest is a "contribution".
Don't you think ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem I reverted CONTRIBUTORS.md to your entry only. You're right that a version bump isn't much of a contribution and to be fair credit wasn't even the point. I need the module on 19.0 for some downstream work and would rather upstream the migration than carry a fork, also because the module was already migration ready, maybe someone could benefit from this. If PR still needs something else, I'd be glad to address it.

@agiuseppe28 agiuseppe28 force-pushed the 19.0-mig-web_leaflet_lib branch from 65857a1 to ff3f4d9 Compare June 18, 2026 14:03

@legalsylvain legalsylvain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff review. no test.

thanks !

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.

7 participants