Skip to content
Open
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
8 changes: 2 additions & 6 deletions spp_registrant_gis/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ OpenSPP Registrant GIS
!! source digest: sha256:3f603a69c4731312b90dc10708243432cd74193750065d7fe86c2364732c1e9a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Expand Down Expand Up @@ -75,10 +75,6 @@ Dependencies

``spp_gis``, ``spp_registry``

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.

**Table of contents**

.. contents::
Expand Down
2 changes: 1 addition & 1 deletion spp_registrant_gis/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "OpenSPP.org",
"website": "https://github.com/OpenSPP/OpenSPP2",
"license": "LGPL-3",
"development_status": "Alpha",
"development_status": "Beta",
"maintainers": ["jeremi", "gonzalesedwin1123", "reichie020212"],
"depends": [
"spp_gis",
Expand Down
Binary file added spp_registrant_gis/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 1 addition & 6 deletions spp_registrant_gis/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ <h1 class="title">OpenSPP Registrant GIS</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3f603a69c4731312b90dc10708243432cd74193750065d7fe86c2364732c1e9a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OpenSPP/OpenSPP2/tree/19.0/spp_registrant_gis"><img alt="OpenSPP/OpenSPP2" src="https://img.shields.io/badge/github-OpenSPP%2FOpenSPP2-lightgray.png?logo=github" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OpenSPP/OpenSPP2/tree/19.0/spp_registrant_gis"><img alt="OpenSPP/OpenSPP2" src="https://img.shields.io/badge/github-OpenSPP%2FOpenSPP2-lightgray.png?logo=github" /></a></p>
<p>Extends registrants with GPS coordinates for spatial queries and
geographic analysis. Adds a PostGIS point field to both individuals and
groups, enabling proximity-based targeting and mapping.</p>
Expand Down Expand Up @@ -431,11 +431,6 @@ <h1>Technical Details</h1>
<div class="section" id="dependencies">
<h1>Dependencies</h1>
<p><tt class="docutils literal">spp_gis</tt>, <tt class="docutils literal">spp_registry</tt></p>
<div class="admonition important">
<p class="first admonition-title">Important</p>
<p class="last">This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.</p>
</div>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down
35 changes: 35 additions & 0 deletions spp_registrant_gis/views/res_partner_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,39 @@
</xpath>
</field>
</record>

<!-- GIS view for res.partner (registrants) -->
<record id="view_res_partner_gis" model="ir.ui.view">
<field name="name">Registrant GIS View</field>
<field eval="16" name="priority" />
<field name="model">res.partner</field>
<field name="arch" type="xml">
<gis editable="1">
<field name="id" />
<field name="name" select="1" />
<field name="display_name" />
<field name="coordinates" />
</gis>
</field>
</record>

<record id="gis_vector_layer_registrant_coordinates" model="spp.gis.data.layer">
<field
name="geo_field_id"
ref="spp_registrant_gis.field_res_partner__coordinates"
/>
<field name="name">Registrant Coordinates</field>
<field eval="1" name="sequence" />
<field name="view_id" ref="view_res_partner_gis" />
<field name="geo_repr">basic</field>
<field name="active_on_startup" eval="True" />
<field name="layer_opacity">0.8</field>
<field name="begin_color">#FF680A</field>
</record>

<record id="gis_raster_layer_registrant_osm" model="spp.gis.raster.layer">
<field name="raster_type">osm</field>
<field name="name">Default</field>

Choose a reason for hiding this comment

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

medium

The name "Default" for the raster layer is a bit generic. Using a more descriptive name like "OpenStreetMap" would improve clarity and maintainability, making it immediately clear what this layer represents without needing to check the raster_type.

Suggested change
<field name="name">Default</field>
<field name="name">OpenStreetMap</field>

<field name="view_id" ref="view_res_partner_gis" />
</record>
</odoo>
Loading