Skip to content

Commit faca768

Browse files
committed
fix(spp_registry): disable gender creation in individual form
Add no_create and no_open options to gender_id field to prevent users from creating or editing gender records inline.
1 parent 619f6a8 commit faca768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spp_registry/views/individual_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
<field name="birthdate" readonly="disabled" help="Date of Birth - mm/dd/yyyy" />
223223
</group>
224224
<group>
225-
<field name="gender_id" readonly="disabled" />
225+
<field name="gender_id" readonly="disabled" options="{'no_create': True, 'no_open': True}" />
226226
</group>
227227
<group>
228228
<field name="age" />

0 commit comments

Comments
 (0)