Skip to content

Commit

Permalink
Merge pull request #154 from dibik96/17.0-develop
Browse files Browse the repository at this point in the history
Field required removed and removed badge
  • Loading branch information
shibu-narayanan authored Jul 31, 2024
2 parents 879ce41 + bb8fa8d commit aac75e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion g2p_registry_base/models/reg_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class G2PRegistrantID(models.Model):
expiry_date = fields.Date()
id_type_as_str = fields.Char(related="id_type.name")

status = fields.Selection([("invalid", "Invalid"), ("valid", "Valid")], required=True)
status = fields.Selection([("invalid", "Invalid"), ("valid", "Valid")])

description = fields.Char()

Expand Down
9 changes: 4 additions & 5 deletions g2p_registry_individual/views/individuals_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,12 @@
/>
<field name="value" string="ID Number" />
<field name="expiry_date" />
<field name="status" readonly="1" widget="badge" decoration-info="1" />
<field
name="description"
readonly="1"
widget="badge"
decoration-warning="1"
name="status"
decoration-danger="status == 'invalid'"
decoration-success="status == 'valid'"
/>
<field name="description" decoration-warning="1" />
</tree>
</field>
</page>
Expand Down

0 comments on commit aac75e5

Please sign in to comment.