Skip to content

Commit

Permalink
Merge pull request OpenG2P#199 from mkumar-02/17.0-develop
Browse files Browse the repository at this point in the history
Proxy Mean Test: Fixed pmt_field drop-down value issue.
  • Loading branch information
shibu-narayanan authored Mar 21, 2024
2 parents fc9baa5 + 37284bc commit 81c2b29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions g2p_proxy_means_test/models/proxy_means_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ def get_fields_label(self):
choice = []
for field in reg_info._fields.items():
ir_model_field = ir_model_obj.search(
[("model", "=", "g2p.program.registrant_info"), ("name", "=", field)]
[("model", "=", "g2p.program.registrant_info"), ("name", "=", field[0])]
)
field_type = ir_model_field.ttype
if field_type in ["integer", "float"] and field not in (
if field_type in ["integer", "float"] and field[0] not in (
"pmt_score",
"id",
"sl_no",
):
choice.append((field, field))
choice.append((field[0], field[0]))
return choice

0 comments on commit 81c2b29

Please sign in to comment.