From c570d6028313d89122841471471f596eaa22fda2 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Tue, 29 Oct 2024 12:28:14 +0100 Subject: [PATCH] [MIG] web_leaflet_lib. From 16.0 to 17.0 - Bump version. - Remove obsolete hook. (that was usefull during the refactoring done here https://github.com/OCA/geospatial/pull/380) --- web_leaflet_lib/__init__.py | 1 - web_leaflet_lib/__manifest__.py | 3 +-- web_leaflet_lib/hooks.py | 14 -------------- 3 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 web_leaflet_lib/hooks.py diff --git a/web_leaflet_lib/__init__.py b/web_leaflet_lib/__init__.py index 6d58305f5d..0650744f6b 100644 --- a/web_leaflet_lib/__init__.py +++ b/web_leaflet_lib/__init__.py @@ -1,2 +1 @@ from . import models -from .hooks import pre_init_hook diff --git a/web_leaflet_lib/__manifest__.py b/web_leaflet_lib/__manifest__.py index 890852e255..73a71dae0c 100644 --- a/web_leaflet_lib/__manifest__.py +++ b/web_leaflet_lib/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Leaflet Javascript Library", "summary": "Bring leaflet.js librairy in odoo.", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "author": "GRAP, Odoo Community Association (OCA)", "maintainers": ["legalsylvain"], "website": "https://github.com/OCA/geospatial", @@ -21,5 +21,4 @@ ], }, "installable": True, - "pre_init_hook": "pre_init_hook", } diff --git a/web_leaflet_lib/hooks.py b/web_leaflet_lib/hooks.py deleted file mode 100644 index 4cf094ea32..0000000000 --- a/web_leaflet_lib/hooks.py +++ /dev/null @@ -1,14 +0,0 @@ -def pre_init_hook(cr): - # move configuration from web_view_leaflet_map - # into web_leaflet_lib, if exists. - cr.execute( - """ - UPDATE ir_model_data - SET module='web_leaflet_lib' - WHERE module = 'web_view_leaflet_map' - AND name in ( - 'config_parameter_leaflet_copyright', - 'config_parameter_leaflet_tile_url' - ) - """ - )