oca-technical/odoo-bringout-oca-geospatial-web_leaflet_lib/web_leaflet_lib/hooks.py
2025-08-29 15:43:03 +02:00

14 lines
397 B
Python

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'
)
"""
)