Closed jeremi closed 7 months ago
Here are the updates:
In the group types configuration, an option was added to set if the group can contain individual members and sub-groups. All groups with a type set with "Allow group and individual members" will accept both groups and individuals in the group membership.
Done
For clarification: properties of group type and rules governing its composition and interaction with other entities.
Introduce a model defining properties and constraints specific to each group type, including:
Done in the group types configuration UI
Under development
Under development
Findings: Blocked
Able to login to instance but the instance is empty. cc: @dasunhegoda
Findings: Returned to DEV
Open member and Create member modal has issue with its GUI placeholder for Child field. https://drive.google.com/file/d/1aAlNqDuwrJQ-y0XyPJrz1Q58NjcSUzMk/view?usp=sharing
Findings; QA Passed
Able to create group tag under configuration and define its name - pass Able to toggle on/off "allow individuals and group members" - pass Able to add subgroups and individuals within a group when it is toggled on, and is applied to the group - pass Should not be able to add subgroups within a group anymore if tag is removed from KIND field - pass Should not be able to add subgroups if the tag applied to a group has it's setting toggled off - pass Able to delete group tag - pass Able to apply group tag into a group thru KIND field - pass Able to remove group tag from a group thru KIND field - pass Modal labels should be generic when adding members to a group "Add member" - pass Open member and Create member modal has issue with its GUI placeholder for Child field. - pass
NOTE: This PBI has a requirement that is still under development and will be handled on a separate ticket
Objective:
The enhancement aims to broaden the group management capabilities within OpenSPP to represent a variety of social and organizational structures accurately, from households and educational institutions to cooperatives and community groups. By allowing groups to encompass both individuals and other groups and by introducing group types with specific attributes and constraints, OpenSPP will be able to model complex entities such as a household within a village community, a cooperative of farmers with individual and group memberships, or a school encompassing students, teachers, and administrative staff. This development is key to catering to the diverse needs of social protection programs, ensuring that the software can adapt to the multifaceted ways in which people organize themselves in different cultural and economic contexts.
Requirements:
Hierarchical Group Composition:
Extension of
res.partner
:res.partner
model for both individuals and groups to ensure compatibility with other modules.Group Naming and Typing:
Group Type Properties:
g2p.relationship
) between parent and child entities within the group structure.Group Hierarchy and Depth Control:
Expected Outcome:
The implementation of these features will significantly enhance the flexibility and applicability of OpenSPP for managing diverse group structures in social protection programs. It will allow for accurate representation of real-world social and organizational relationships, improving the administration and delivery of services.
Technical Considerations:
Most of those changes are in OpenG2P.
We will need to do modifications in OpenG2P to likely rename group and individual to parent and child in https://github.com/OpenG2P/openg2p-registry/blob/17.0-fix-build/g2p_registry_membership/models/group_membership.py
We will need to study the impact on the recomputation of indicators