Skip to content

Commit

Permalink
Merge pull request #225 from mkumar-02/17.0-develop-pmt-fix
Browse files Browse the repository at this point in the history
G2P-2150: PMT Module: Fixed dropdown issue in program wizard.
  • Loading branch information
shibu-narayanan authored May 3, 2024
2 parents 2b31717 + 3cdca06 commit 58bd75d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions g2p_proxy_means_test/wizard/create_program_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def get_fields_label(self):
choice = []
for field in data._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 ("pmt_score", "id"):
choice.append((field, field))
if field_type in ["integer", "float"] and field[0] not in ("pmt_score", "id", "sl_no"):
choice.append((field[0], field[0]))
return choice

0 comments on commit 58bd75d

Please sign in to comment.