Registry Group Hierarchy
Contents
Registry Group Hierarchy#
Module: spp_registry_group_hierarchy
Overview#
The module introduces hierarchical relationships among OpenSPP registry groups, enabling the creation of nested structures where groups can contain both individuals and other sub-groups. It extends g2p_registry_group and g2p_registry_membership modules.
Purpose#
This module is designed to:
Enable group-of-groups structures: Allow groups to contain both individuals and other groups as members, forming hierarchical relationships (e.g., cooperatives containing households).
Control membership types per group type: Use vocabulary codes to define which group types allow mixed membership (individuals and sub-groups).
Module Dependencies#
Dependency |
Purpose |
|---|---|
|
Central security definitions for OpenSPP modules |
|
Odoo core framework |
|
Consolidated registry management for individuals, groups,... |
|
OpenSPP: Vocabulary |
Key Features#
Allow All Member Types#
Adds an allow_all_member_type boolean to group type vocabulary codes (spp.vocabulary.code). When enabled on a group type, groups of that type can contain both individual registrants and other groups as members.
Dynamic Membership Domain#
Extends spp.group.membership with a computed domain that adjusts based on the group type:
Group Type Setting |
Allowed Members |
|---|---|
|
Individual registrants only |
|
Both individuals and groups (excluding the group itself) |
Integration#
spp_vocabulary: Extends vocabulary codes with the
allow_all_member_typeflag to control which group types support hierarchical membership.spp_registry: Extends group membership to support dynamic filtering of allowed members based on the parent group's type configuration.
openspp.org