mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 07:32:04 +02:00
14 lines
397 B
Python
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'
|
|
)
|
|
"""
|
|
)
|