Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #34 from mkumar-02/patch-1
Browse files Browse the repository at this point in the history
ODK Importer: Fixed gender display by matching the correct value
  • Loading branch information
shibu-narayanan committed Aug 11, 2024
2 parents 7bf5f53 + d856d28 commit 2ab4e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g2p_odk_importer/models/odk_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def get_member_relationship(self, source_id, record):

def get_gender(self, gender_val):
if gender_val:
gender = self.env["gender.type"].sudo().search([("code", "=", gender_val)], limit=1)
gender = self.env["gender.type"].sudo().search([("value", "=", gender_val)], limit=1)
return gender.code if gender else None
return None

Expand Down

0 comments on commit 2ab4e2f

Please sign in to comment.