From ac433f2841a61255064b264537568d5690a705a5 Mon Sep 17 00:00:00 2001 From: mkumar-02 Date: Wed, 10 Jul 2024 09:44:19 +0530 Subject: [PATCH] PMT: Removed latest_pmt_score field from pmt_field selection --- g2p_proxy_means_test/models/proxy_means_params.py | 1 + g2p_proxy_means_test/wizard/create_program_wizard.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/g2p_proxy_means_test/models/proxy_means_params.py b/g2p_proxy_means_test/models/proxy_means_params.py index 802a98ba..c22ebccd 100644 --- a/g2p_proxy_means_test/models/proxy_means_params.py +++ b/g2p_proxy_means_test/models/proxy_means_params.py @@ -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 diff --git a/g2p_proxy_means_test/wizard/create_program_wizard.py b/g2p_proxy_means_test/wizard/create_program_wizard.py index de702552..720c430e 100644 --- a/g2p_proxy_means_test/wizard/create_program_wizard.py +++ b/g2p_proxy_means_test/wizard/create_program_wizard.py @@ -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