Skip to content
Merged
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_registry/views/individual_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
<field name="birthdate" readonly="disabled" help="Date of Birth - mm/dd/yyyy" />
</group>
<group>
<field name="gender_id" readonly="disabled" />
<field name="gender_id" readonly="disabled" options="{'no_create': True, 'no_open': True}" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To fully disable creation options as intended, it's best to also include no_create_edit: True. The PR description mentions verifying that 'Create and Edit' is not available, and this option is what controls that feature in the dropdown menu. For consistency with other vocabulary-based fields in this file, such as id_type_id on line 303, which uses {'no_open':True,'no_create_edit':True,'no_create':True}, adding this option would be beneficial.

Suggested change
<field name="gender_id" readonly="disabled" options="{'no_create': True, 'no_open': True}" />
<field name="gender_id" readonly="disabled" options="{'no_create': True, 'no_create_edit': True, 'no_open': True}" />

</group>
<group>
<field name="age" />
Expand Down
Loading