Skip to content

Commit aef0602

Browse files
authored
[REM] top-up card (#855)
1 parent cf9a829 commit aef0602

File tree

13 files changed

+1
-118
lines changed

13 files changed

+1
-118
lines changed

spp_base_spmis/README.rst

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ modules, offering:
4545
gender details, and a clear distinction of registrant type (e.g.,
4646
individual, group). This enables more comprehensive data capture and
4747
analysis for beneficiaries.
48-
- **Top-up Card Management**: Supports the integration and validation
49-
of Top-up Cards as a specific form of identification within the
50-
system. This is crucial for programs utilizing physical cards for
51-
beneficiary interactions.
5248
- **Core UI and Role Configuration**: Provides fundamental user
5349
interface elements and initial security configurations, including
5450
global and local user roles. This ensures a consistent look and feel
@@ -74,10 +70,6 @@ integrating their features and extending them for OpenSPP:
7470
like `OpenSPP Area <spp_area>`__ and `OpenSPP Service
7571
Points <spp_service_points>`__ by providing the underlying registrant
7672
framework and unique identifiers used across the system.
77-
- It supports identity management features such as
78-
`spp_idpass <spp_idpass>`__ and `spp_idqueue <spp_idqueue>`__ by
79-
defining the 'Top-up Card' ID type and its validation rules, crucial
80-
for card issuance and tracking.
8173
- OpenSPP Base underpins UI customization and filtering through
8274
`OpenSPP Custom Field <spp_custom_field>`__, `OpenSPP Custom Fields
8375
UI <spp_custom_fields_ui>`__, `OpenSPP Hide
@@ -115,15 +107,6 @@ household). This module also integrates ``Gender`` information into
115107
individual and group membership records, allowing for more detailed
116108
demographic analysis of beneficiary populations.
117109

118-
Top-Up Card Identification
119-
~~~~~~~~~~~~~~~~~~~~~~~~~~
120-
121-
OpenSPP Base manages the specific ``Top-up Card`` identification type,
122-
including its unique identifier (``Card UID``). The system ensures data
123-
accuracy by validating that all entered Top-up Card UIDs are exactly 10
124-
characters long. This standardization is essential for reliable card
125-
issuance, tracking, and usage in program distributions.
126-
127110
Foundational UI and Role Configuration
128111
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
129112

spp_base_spmis/__manifest__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
]
5151
}, # not directly required, pinned by Snyk to avoid a vulnerability and for fastapi, compatibility issues.
5252
"data": [
53-
"data/top_up_card.xml",
5453
"security/ir.model.access.csv",
5554
"views/registrant_view.xml",
5655
"views/users_view.xml",
@@ -61,5 +60,5 @@
6160
"application": True,
6261
"installable": True,
6362
"auto_install": False,
64-
"summary": "Establishes core system settings and generates unique identifiers for records, enhancing registrant profiles with attributes like tags, gender, and type. The module also integrates Top-up Cards for identification and provides fundamental user interface elements with initial security configurations for user roles.",
63+
"summary": "Establishes core system settings and generates unique identifiers for records, enhancing registrant profiles with attributes like tags, gender, and type.",
6564
}

spp_base_spmis/data/top_up_card.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.

spp_base_spmis/i18n/lo.po

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ msgstr ""
1414
"Content-Transfer-Encoding: 8bit\n"
1515
"Plural-Forms: \n"
1616

17-
#. module: spp_base_spmis
18-
#: model:ir.model.fields,field_description:spp_base_spmis.field_g2p_reg_id__card_uid
19-
msgid "Card UID"
20-
msgstr ""
21-
2217
#. module: spp_base_spmis
2318
#: model:ir.model,name:spp_base_spmis.model_res_partner
2419
msgid "Contact"
@@ -59,13 +54,6 @@ msgstr ""
5954
msgid "String Kind"
6055
msgstr ""
6156

62-
#. module: spp_base_spmis
63-
#. odoo-python
64-
#: code:addons/spp_base_spmis/models/reg_id.py:0
65-
#, python-format
66-
msgid "Top-up Card UID should have 10 characters"
67-
msgstr ""
68-
6957
#. module: spp_base_spmis
7058
#: model:ir.model,name:spp_base_spmis.model_spp_unique_id
7159
#: model:ir.model.fields,field_description:spp_base_spmis.field_spp_unique_id__spp_id

spp_base_spmis/i18n/spp_base.pot

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ msgstr ""
1313
"Content-Transfer-Encoding: \n"
1414
"Plural-Forms: \n"
1515

16-
#. module: spp_base_spmis
17-
#: model:ir.model.fields,field_description:spp_base_spmis.field_g2p_reg_id__card_uid
18-
msgid "Card UID"
19-
msgstr ""
20-
2116
#. module: spp_base_spmis
2217
#: model:ir.model,name:spp_base_spmis.model_res_partner
2318
msgid "Contact"
@@ -58,13 +53,6 @@ msgstr ""
5853
msgid "String Kind"
5954
msgstr ""
6055

61-
#. module: spp_base_spmis
62-
#. odoo-python
63-
#: code:addons/spp_base/models/reg_id.py:0
64-
#, python-format
65-
msgid "Top-up Card UID should have 10 characters"
66-
msgstr ""
67-
6856
#. module: spp_base_spmis
6957
#: model:ir.model,name:spp_base_spmis.model_spp_unique_id
7058
#: model:ir.model.fields,field_description:spp_base_spmis.field_spp_unique_id__spp_id

spp_base_spmis/i18n/spp_base_spmis.pot

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ msgstr ""
1313
"Content-Transfer-Encoding: \n"
1414
"Plural-Forms: \n"
1515

16-
#. module: spp_base_spmis
17-
#: model:ir.model.fields,field_description:spp_base_spmis.field_g2p_reg_id__card_uid
18-
msgid "Card UID"
19-
msgstr ""
20-
2116
#. module: spp_base_spmis
2217
#: model:ir.model,name:spp_base_spmis.model_res_partner
2318
msgid "Contact"
@@ -58,13 +53,6 @@ msgstr ""
5853
msgid "String Kind"
5954
msgstr ""
6055

61-
#. module: spp_base_spmis
62-
#. odoo-python
63-
#: code:addons/spp_base_spmis/models/reg_id.py:0
64-
#, python-format
65-
msgid "Top-up Card UID should have 10 characters"
66-
msgstr ""
67-
6856
#. module: spp_base_spmis
6957
#: model:ir.model,name:spp_base_spmis.model_spp_unique_id
7058
#: model:ir.model.fields,field_description:spp_base_spmis.field_spp_unique_id__spp_id

spp_base_spmis/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Part of OpenSPP. See LICENSE file for full copyright and licensing details.
22

3-
from . import reg_id
43
from . import spp_unique_id
54
from . import registrant
65
from . import group_membership

spp_base_spmis/models/reg_id.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

spp_base_spmis/readme/DESCRIPTION.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ The OpenSPP Base module establishes the core framework and essential capabilitie
88

99
* **System Foundation**: Establishes core system settings and a mechanism for generating unique identifiers for various records. This ensures consistent data tracking and integrity across all OpenSPP modules.
1010
* **Enhanced Registrant Profiles**: Extends the base registrant model to include additional, critical information such as registrant tags, gender details, and a clear distinction of registrant type (e.g., individual, group). This enables more comprehensive data capture and analysis for beneficiaries.
11-
* **Top-up Card Management**: Supports the integration and validation of Top-up Cards as a specific form of identification within the system. This is crucial for programs utilizing physical cards for beneficiary interactions.
1211
* **Core UI and Role Configuration**: Provides fundamental user interface elements and initial security configurations, including global and local user roles. This ensures a consistent look and feel and lays the groundwork for robust access control.
1312
* **Integration Enabler**: Serves as a central integration point, allowing other OpenSPP modules to seamlessly interact with core registrant data and system settings.
1413

@@ -18,7 +17,6 @@ The OpenSPP Base module is deeply integrated into the OpenSPP ecosystem, extendi
1817

1918
* It extends the core G2P Registry models, including `res.partner` (registrants), `g2p.reg.id` (registrant IDs), and `g2p.group.membership` (group memberships) from [G2P Registry Base](g2p_registry_base), [G2P Registry Individual](g2p_registry_individual), and [G2P Registry Group](g2p_registry_group). This provides foundational data structures for all registrants.
2019
* This module integrates with geographical and service delivery modules like [OpenSPP Area](spp_area) and [OpenSPP Service Points](spp_service_points) by providing the underlying registrant framework and unique identifiers used across the system.
21-
* It supports identity management features such as [spp_idpass](spp_idpass) and [spp_idqueue](spp_idqueue) by defining the 'Top-up Card' ID type and its validation rules, crucial for card issuance and tracking.
2220
* OpenSPP Base underpins UI customization and filtering through [OpenSPP Custom Field](spp_custom_field), [OpenSPP Custom Fields UI](spp_custom_fields_ui), [OpenSPP Hide Menus](spp_hide_menus), and [OpenSPP Custom Filter UI](spp_custom_filter_ui), establishing common interface elements and simplifying user workflows.
2321
* It defines global and local roles, which are utilized by [OpenSPP User Roles](spp_user_roles) to manage permissions and access control for users based on their responsibilities and assigned areas.
2422

@@ -34,10 +32,6 @@ The module provides a robust system for generating unique identifiers for variou
3432

3533
It extends the core registrant profile by adding critical fields for more comprehensive data capture. Users can assign multiple `Registrant Tags` for flexible categorization and reporting, and easily see the `String Kind` of a registrant (e.g., individual, household). This module also integrates `Gender` information into individual and group membership records, allowing for more detailed demographic analysis of beneficiary populations.
3634

37-
### Top-Up Card Identification
38-
39-
OpenSPP Base manages the specific `Top-up Card` identification type, including its unique identifier (`Card UID`). The system ensures data accuracy by validating that all entered Top-up Card UIDs are exactly 10 characters long. This standardization is essential for reliable card issuance, tracking, and usage in program distributions.
40-
4135
### Foundational UI and Role Configuration
4236

4337
This module establishes the fundamental user interface components and initial security settings for the OpenSPP platform. It pre-defines `Global Roles` and `Local Roles` to streamline user permission management and sets up the basic views for interacting with registrants and user accounts. This ensures a secure, consistent, and user-friendly operating environment from the outset.

spp_base_spmis/static/description/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,6 @@ <h2>Module Dependencies and Integration</h2>
311311
<h2>Additional Functionality</h2>
312312
<p>The <strong>OpenSPP SPMIS Base</strong> module introduces the following key functionalities:</p>
313313
<ul class="simple">
314-
<li><strong>Top-up Card ID Type</strong>: Adds a new ID type specifically for managing "Top-up Cards", including a dedicated field (<code>card_uid</code>) for storing the unique 10-character UID of each card.</li>
315-
<li><strong>Registrant View Enhancements</strong>: Modifies the registrant views (both individual and group) to include the <code>card_uid</code> field, making it accessible for data entry and display.</li>
316314
<li><strong>Menu Icon Customization</strong>: Replaces the default icon for the "Registry" menu item with a custom OpenSPP icon, enhancing visual branding.</li>
317315
<li><strong>Menu Item Hiding</strong>: Hides specific menu items related to "Link Tracker" and "Discuss" to streamline the OpenSPP user interface and focus on relevant functionalities.</li>
318316
</ul>

0 commit comments

Comments
 (0)