Skip to content

Commit 5d316fe

Browse files
authored
Merge pull request #86 from OpenSPP/fix/registrant-gis-view-beta
fix(spp_registrant_gis): add GIS view for res.partner and promote to Beta
2 parents a4f3701 + c924acc commit 5d316fe

File tree

5 files changed

+39
-13
lines changed

5 files changed

+39
-13
lines changed

spp_registrant_gis/README.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ OpenSPP Registrant GIS
1010
!! source digest: sha256:3f603a69c4731312b90dc10708243432cd74193750065d7fe86c2364732c1e9a
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
13-
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1414
:target: https://odoo-community.org/page/development-status
15-
:alt: Alpha
15+
:alt: Beta
1616
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
1717
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
1818
:alt: License: LGPL-3
@@ -75,10 +75,6 @@ Dependencies
7575

7676
``spp_gis``, ``spp_registry``
7777

78-
.. IMPORTANT::
79-
This is an alpha version, the data model and design can change at any time without warning.
80-
Only for development or testing purpose, do not use in production.
81-
8278
**Table of contents**
8379

8480
.. contents::

spp_registrant_gis/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"author": "OpenSPP.org",
88
"website": "https://github.com/OpenSPP/OpenSPP2",
99
"license": "LGPL-3",
10-
"development_status": "Alpha",
10+
"development_status": "Beta",
1111
"maintainers": ["jeremi", "gonzalesedwin1123", "reichie020212"],
1212
"depends": [
1313
"spp_gis",
15.1 KB
Loading

spp_registrant_gis/static/description/index.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">OpenSPP Registrant GIS</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:3f603a69c4731312b90dc10708243432cd74193750065d7fe86c2364732c1e9a
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<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>
372+
<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>
373373
<p>Extends registrants with GPS coordinates for spatial queries and
374374
geographic analysis. Adds a PostGIS point field to both individuals and
375375
groups, enabling proximity-based targeting and mapping.</p>
@@ -431,11 +431,6 @@ <h1>Technical Details</h1>
431431
<div class="section" id="dependencies">
432432
<h1>Dependencies</h1>
433433
<p><tt class="docutils literal">spp_gis</tt>, <tt class="docutils literal">spp_registry</tt></p>
434-
<div class="admonition important">
435-
<p class="first admonition-title">Important</p>
436-
<p class="last">This is an alpha version, the data model and design can change at any time without warning.
437-
Only for development or testing purpose, do not use in production.</p>
438-
</div>
439434
<p><strong>Table of contents</strong></p>
440435
<div class="contents local topic" id="contents">
441436
<ul class="simple">

spp_registrant_gis/views/res_partner_views.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,39 @@
3737
</xpath>
3838
</field>
3939
</record>
40+
41+
<!-- GIS view for res.partner (registrants) -->
42+
<record id="view_res_partner_gis" model="ir.ui.view">
43+
<field name="name">Registrant GIS View</field>
44+
<field eval="16" name="priority" />
45+
<field name="model">res.partner</field>
46+
<field name="arch" type="xml">
47+
<gis editable="1">
48+
<field name="id" />
49+
<field name="name" select="1" />
50+
<field name="display_name" />
51+
<field name="coordinates" />
52+
</gis>
53+
</field>
54+
</record>
55+
56+
<record id="gis_vector_layer_registrant_coordinates" model="spp.gis.data.layer">
57+
<field
58+
name="geo_field_id"
59+
ref="spp_registrant_gis.field_res_partner__coordinates"
60+
/>
61+
<field name="name">Registrant Coordinates</field>
62+
<field eval="1" name="sequence" />
63+
<field name="view_id" ref="view_res_partner_gis" />
64+
<field name="geo_repr">basic</field>
65+
<field name="active_on_startup" eval="True" />
66+
<field name="layer_opacity">0.8</field>
67+
<field name="begin_color">#FF680A</field>
68+
</record>
69+
70+
<record id="gis_raster_layer_registrant_osm" model="spp.gis.raster.layer">
71+
<field name="raster_type">osm</field>
72+
<field name="name">Default</field>
73+
<field name="view_id" ref="view_res_partner_gis" />
74+
</record>
4075
</odoo>

0 commit comments

Comments
 (0)