From 37284bc14c629bcbf8b96a4aaf4fca795ce9a8da Mon Sep 17 00:00:00 2001 From: mkumar-02 Date: Mon, 26 Feb 2024 14:33:28 +0530 Subject: [PATCH] Proxy Mean Test: Fixed pmt_field drop-down value issue. --- g2p_proxy_means_test/models/proxy_means_params.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/g2p_proxy_means_test/models/proxy_means_params.py b/g2p_proxy_means_test/models/proxy_means_params.py index e73aaac8..d7e71a22 100644 --- a/g2p_proxy_means_test/models/proxy_means_params.py +++ b/g2p_proxy_means_test/models/proxy_means_params.py @@ -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