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
36 changes: 18 additions & 18 deletions spp_hazard_programs/README.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===================================
OpenSPP Hazard Programs Integration
===================================

..
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e4ca3f5b5e8c998b833ccd6526f575c07f53a38ac49875511c31201f13122916
!! source digest: sha256:4af3e4daf1509efef99ad29497bc756e1ec197df2297c50529ff48112fb08d59
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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 @@ -44,15 +48,15 @@ Key Capabilities
Key Models
~~~~~~~~~~

+----------------------------------+-----------------------------------+
| Model | Description |
+==================================+===================================+
| ``spp.program`` (extend) | Adds target incidents, emergency |
| | mode, damage filter |
+----------------------------------+-----------------------------------+
| ``spp.hazard.incident`` (extend) | Adds reverse relation to response |
| | programs |
+----------------------------------+-----------------------------------+
+----------------------------------+----------------------------------+
| Model | Description |
+==================================+==================================+
| ``spp.program`` (extend) | Adds target incidents, emergency |
| | mode, damage filter |
+----------------------------------+----------------------------------+
| ``spp.hazard.incident`` (extend) | Adds reverse relation to |
| | response programs |
+----------------------------------+----------------------------------+

UI Location
~~~~~~~~~~~
Expand Down Expand Up @@ -89,10 +93,6 @@ Dependencies

``spp_hazard``, ``spp_programs``

.. 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 Expand Up @@ -135,4 +135,4 @@ Current maintainers:

This module is part of the `OpenSPP/OpenSPP2 <https://github.com/OpenSPP/OpenSPP2/tree/19.0/spp_hazard_programs>`_ project on GitHub.

You are welcome to contribute.
You are welcome to contribute.
3 changes: 1 addition & 2 deletions spp_hazard_programs/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
"author": "OpenSPP.org",
"website": "https://github.com/OpenSPP/OpenSPP2",
"license": "LGPL-3",
"development_status": "Alpha",
"development_status": "Beta",
"maintainers": ["jeremi", "gonzalesedwin1123", "reichie020212"],
"depends": [
"spp_hazard",
"spp_programs",
],
"data": [
"security/ir.model.access.csv",
"views/program_views.xml",
"views/incident_views.xml",
],
Expand Down
1 change: 0 additions & 1 deletion spp_hazard_programs/security/ir.model.access.csv

This file was deleted.

49 changes: 25 additions & 24 deletions spp_hazard_programs/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>OpenSPP Hazard Programs Integration</title>
<title>README.rst</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -360,22 +360,27 @@
</style>
</head>
<body>
<div class="document" id="openspp-hazard-programs-integration">
<h1 class="title">OpenSPP Hazard Programs Integration</h1>
<div class="document">


<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
</a>
<div class="section" id="openspp-hazard-programs-integration">
<h1>OpenSPP Hazard Programs Integration</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e4ca3f5b5e8c998b833ccd6526f575c07f53a38ac49875511c31201f13122916
!! source digest: sha256:4af3e4daf1509efef99ad29497bc756e1ec197df2297c50529ff48112fb08d59
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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_hazard_programs"><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_hazard_programs"><img alt="OpenSPP/OpenSPP2" src="https://img.shields.io/badge/github-OpenSPP%2FOpenSPP2-lightgray.png?logo=github" /></a></p>
<p>Links hazard incidents to emergency response programs. Enables programs
to target affected populations using verified impact data, filter
registrants by damage severity, and automatically enable emergency mode
when responding to active incidents.</p>
<div class="section" id="key-capabilities">
<h1>Key Capabilities</h1>
<h2>Key Capabilities</h2>
<ul class="simple">
<li>Link programs to one or more hazard incidents via many-to-many
relation</li>
Expand All @@ -390,11 +395,11 @@ <h1>Key Capabilities</h1>
</ul>
</div>
<div class="section" id="key-models">
<h1>Key Models</h1>
<h2>Key Models</h2>
<table border="1" class="docutils">
<colgroup>
<col width="49%" />
<col width="51%" />
<col width="50%" />
<col width="50%" />
</colgroup>
<thead valign="bottom">
<tr><th class="head">Model</th>
Expand All @@ -407,14 +412,14 @@ <h1>Key Models</h1>
mode, damage filter</td>
</tr>
<tr><td><tt class="docutils literal">spp.hazard.incident</tt> (extend)</td>
<td>Adds reverse relation to response
programs</td>
<td>Adds reverse relation to
response programs</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="ui-location">
<h1>UI Location</h1>
<h2>UI Location</h2>
<ul class="simple">
<li><strong>Programs</strong>: Programs &gt; Programs &gt; “Emergency Response” tab</li>
<li><strong>Incidents</strong>: Hazard &amp; Emergency &gt; Incidents &gt; All Incidents &gt;
Expand All @@ -426,15 +431,15 @@ <h1>UI Location</h1>
</ul>
</div>
<div class="section" id="security">
<h1>Security</h1>
<h2>Security</h2>
<p>No new ACL entries. Access inherited from base models:</p>
<ul class="simple">
<li><tt class="docutils literal">spp.program</tt>: Controlled by <tt class="docutils literal">spp_programs</tt> security groups</li>
<li><tt class="docutils literal">spp.hazard.incident</tt>: Controlled by <tt class="docutils literal">spp_hazard</tt> security groups</li>
</ul>
</div>
<div class="section" id="extension-points">
<h1>Extension Points</h1>
<h2>Extension Points</h2>
<ul class="simple">
<li>Override <tt class="docutils literal">get_emergency_eligible_registrants()</tt> to customize
eligibility logic beyond damage levels</li>
Expand All @@ -446,13 +451,8 @@ <h1>Extension Points</h1>
</ul>
</div>
<div class="section" id="dependencies">
<h1>Dependencies</h1>
<h2>Dependencies</h2>
<p><tt class="docutils literal">spp_hazard</tt>, <tt class="docutils literal">spp_programs</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 All @@ -465,23 +465,23 @@ <h1>Dependencies</h1>
</ul>
</div>
<div class="section" id="bug-tracker">
<h2><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h2>
<h3><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h3>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OpenSPP/OpenSPP2/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OpenSPP/OpenSPP2/issues/new?body=module:%20spp_hazard_programs%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h2><a class="toc-backref" href="#toc-entry-2">Credits</a></h2>
<h3><a class="toc-backref" href="#toc-entry-2">Credits</a></h3>
<div class="section" id="authors">
<h3><a class="toc-backref" href="#toc-entry-3">Authors</a></h3>
<h4><a class="toc-backref" href="#toc-entry-3">Authors</a></h4>
<ul class="simple">
<li>OpenSPP.org</li>
</ul>
</div>
<div class="section" id="maintainers">
<h3><a class="toc-backref" href="#toc-entry-4">Maintainers</a></h3>
<h4><a class="toc-backref" href="#toc-entry-4">Maintainers</a></h4>
<p>Current maintainers:</p>
<p><a class="reference external image-reference" href="https://github.com/jeremi"><img alt="jeremi" src="https://github.com/jeremi.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/gonzalesedwin1123"><img alt="gonzalesedwin1123" src="https://github.com/gonzalesedwin1123.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/reichie020212"><img alt="reichie020212" src="https://github.com/reichie020212.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OpenSPP/OpenSPP2/tree/19.0/spp_hazard_programs">OpenSPP/OpenSPP2</a> project on GitHub.</p>
Expand All @@ -490,5 +490,6 @@ <h3><a class="toc-backref" href="#toc-entry-4">Maintainers</a></h3>
</div>
</div>
</div>
</div>
</body>
</html>
1 change: 0 additions & 1 deletion spp_hazard_programs/views/program_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
<field name="category_id" />
<field name="status" widget="badge" />
<field name="severity" widget="badge" />
<field name="affected_registrant_count" />
</list>
</field>
</page>
Expand Down
36 changes: 18 additions & 18 deletions spp_import_match/README.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

====================
OpenSPP Import Match
====================

..
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b57dea1315fd1f9af8f15720c5332b182c0a01fddd827a3daa73a8e950d41faa
!! source digest: sha256:02de7214923a9a8bd540920bb2ff0166ea13501c1859b831f3a8305970b5d64a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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 @@ -47,15 +51,15 @@ Key Capabilities
Key Models
~~~~~~~~~~

+-----------------------------+----------------------------------------+
| Model | Description |
+=============================+========================================+
| ``spp.import.match`` | Matching rule configuration for a |
| | specific model |
+-----------------------------+----------------------------------------+
| ``spp.import.match.fields`` | Individual fields used in a rule, |
| | supports sub-fields |
+-----------------------------+----------------------------------------+
+-----------------------------+---------------------------------------+
| Model | Description |
+=============================+=======================================+
| ``spp.import.match`` | Matching rule configuration for a |
| | specific model |
+-----------------------------+---------------------------------------+
| ``spp.import.match.fields`` | Individual fields used in a rule, |
| | supports sub-fields |
+-----------------------------+---------------------------------------+

Configuration
~~~~~~~~~~~~~
Expand Down Expand Up @@ -106,10 +110,6 @@ Dependencies
``base``, ``spp_base_common``, ``base_import``, ``queue_job``,
``spp_security``

.. 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 Expand Up @@ -149,4 +149,4 @@ Current maintainers:

This module is part of the `OpenSPP/OpenSPP2 <https://github.com/OpenSPP/OpenSPP2/tree/19.0/spp_import_match>`_ project on GitHub.

You are welcome to contribute.
You are welcome to contribute.
8 changes: 3 additions & 5 deletions spp_import_match/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": "OpenSPP.org",
"website": "https://github.com/OpenSPP/OpenSPP2",
"license": "LGPL-3",
"development_status": "Alpha",
"development_status": "Beta",
"maintainers": ["jeremi", "gonzalesedwin1123"],
"depends": ["base", "spp_base_common", "base_import", "queue_job", "spp_security"],
"data": [
Expand All @@ -20,10 +20,8 @@
],
"assets": {
"web.assets_backend": [
"spp_import_match/static/src/legacy/js/custom_base_import.js",
],
"web.assets_qweb": [
"spp_import_match/static/src/legacy/xml/custom_base_import.xml",
"spp_import_match/static/src/import_match_selector/import_match_selector.js",
"spp_import_match/static/src/import_match_selector/import_match_selector.xml",
],
},
"demo": [],
Expand Down
Loading
Loading