Skip to content
Merged
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
2 changes: 1 addition & 1 deletion spp_programs/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "OpenSPP Programs",
"summary": "Manage programs, cycles, beneficiary enrollment, entitlements (cash and in-kind), payments, and fund tracking for social protection.",
"category": "OpenSPP/Core",
"version": "19.0.2.0.10",
"version": "19.0.2.0.11",
"sequence": 1,
"author": "OpenSPP.org",
"website": "https://github.com/OpenSPP/OpenSPP2",
Expand Down
6 changes: 5 additions & 1 deletion spp_programs/models/managers/entitlement_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
class BaseEntitlementManager(models.AbstractModel):
_inherit = "spp.base.program.entitlement.manager"

id_type_id = fields.Many2one("spp.id.type", "ID Type to store in entitlements")
id_type_id = fields.Many2one(
"spp.vocabulary.code",
"ID Type for Entitlement Collection",
domain="[('vocabulary_id.namespace_uri', '=', 'urn:openspp:vocab:id-type')]",
)
6 changes: 5 additions & 1 deletion spp_programs/wizard/create_program_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,11 @@ def _default_warehouse_id(self):
default="default_eligibility",
)

id_type_id = fields.Many2one("spp.id.type", "ID Type to store in entitlements")
id_type_id = fields.Many2one(
"spp.vocabulary.code",
"ID Type for Entitlement Collection",
domain="[('vocabulary_id.namespace_uri', '=', 'urn:openspp:vocab:id-type')]",
)
view_id = fields.Many2one(
"ir.ui.view",
"Program UI Template",
Expand Down
Loading