Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion spp_gis/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "OpenSPP GIS",
"category": "OpenSPP/Core",
"version": "19.0.2.0.0",
"version": "19.0.2.0.1",
"sequence": 1,
"author": "OpenSPP.org",
"website": "https://github.com/OpenSPP/OpenSPP2",
Expand All @@ -25,6 +25,7 @@
"views/data_layer_view.xml",
"views/color_scheme_views.xml",
"views/area.xml",
"views/menu.xml",
],
"assets": {
"web.assets_backend": [
Expand Down
43 changes: 43 additions & 0 deletions spp_gis/views/menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
GIS Configuration menu — owned by spp_gis because the underlying
Raster Layer / Data Layer / Color Scheme actions and models live
here. Previously this root menu was declared in spp_gis_indicators,
which meant installing spp_gis alone left every Raster/Data Layer
action orphaned (no menu pointed at them) and the configuration
section under Settings was empty. spp_gis_indicators now reuses
the root via `spp_gis.menu_gis_config_root`. See OP#988.
-->
<odoo>
<menuitem
id="menu_gis_config_root"
name="GIS Configuration"
parent="base.menu_administration"
sequence="780"
groups="base.group_system"
/>

<menuitem
id="menu_gis_raster_layer"
name="Raster Layers"
parent="menu_gis_config_root"
action="action_spp_gis_raster_layer"
sequence="10"
/>

<menuitem
id="menu_gis_data_layer"
name="Data Layers"
parent="menu_gis_config_root"
action="action_data_layer_view"
sequence="20"
/>

<menuitem
id="menu_gis_color_scheme"
name="Color Schemes"
parent="menu_gis_config_root"
action="action_gis_color_scheme"
sequence="30"
/>
</odoo>
2 changes: 1 addition & 1 deletion spp_gis_indicators/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "OpenSPP GIS Indicators",
"summary": "Choropleth visualization for area-level indicators",
"version": "19.0.2.0.0",
"version": "19.0.2.0.1",
"category": "OpenSPP/GIS",
"author": "OpenSPP.org",
"website": "https://github.com/OpenSPP/OpenSPP2",
Expand Down
6 changes: 3 additions & 3 deletions spp_gis_indicators/views/color_scale_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@
</field>
</record>

<!-- Menu Item -->
<!-- Menu Item — parent menu lives in spp_gis (see OP#988). -->
<menuitem
id="menu_gis_color_scale"
name="Color Scales"
parent="menu_gis_config_root"
parent="spp_gis.menu_gis_config_root"
action="action_gis_color_scale"
sequence="20"
sequence="50"
/>
</odoo>
6 changes: 3 additions & 3 deletions spp_gis_indicators/views/indicator_layer_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@
</field>
</record>

<!-- Menu Item -->
<!-- Menu Item — parent menu lives in spp_gis (see OP#988). -->
<menuitem
id="menu_gis_indicator_layer"
name="Indicator Layers"
parent="menu_gis_config_root"
parent="spp_gis.menu_gis_config_root"
action="action_gis_indicator_layer"
sequence="10"
sequence="40"
/>
</odoo>
19 changes: 9 additions & 10 deletions spp_gis_indicators/views/menu.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- GIS Configuration parent menu under Settings -->
<menuitem
id="menu_gis_config_root"
name="GIS Configuration"
parent="base.menu_administration"
sequence="780"
groups="base.group_system"
/>
</odoo>
<!--
Root "GIS Configuration" menu used to live here, but installing
spp_gis alone left every Raster/Data Layer action orphaned because
the root was unreachable. The root is now declared in spp_gis
(which owns those actions) — see spp_gis/views/menu.xml. This
module's submenus reference it via `spp_gis.menu_gis_config_root`.
See OP#988.
-->
<odoo />
Loading