Skip to content

Commit

Permalink
PMT: Removed latest_pmt_score field from pmt_field selection
Browse files Browse the repository at this point in the history
  • Loading branch information
mkumar-02 committed Jul 10, 2024
1 parent b397ceb commit ac433f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions g2p_proxy_means_test/models/proxy_means_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def get_fields_label(self):
"pmt_score",
"id",
"sl_no",
"latest_pmt_score",
):
choice.append((field[0], field[0]))
return choice
7 changes: 6 additions & 1 deletion g2p_proxy_means_test/wizard/create_program_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ def get_fields_label(self):
[("model", "=", "g2p.program.registrant_info"), ("name", "=", field[0])]
)
field_type = ir_model_field.ttype
if field_type in ["integer", "float"] and field[0] not in ("pmt_score", "id", "sl_no"):
if field_type in ["integer", "float"] and field[0] not in (
"pmt_score",
"id",
"sl_no",
"latest_pmt_score",
):
choice.append((field[0], field[0]))
return choice

0 comments on commit ac433f2

Please sign in to comment.