From 3cdca06dba2a417c8b77412143bcab604de7aa9f Mon Sep 17 00:00:00 2001 From: mkumar-02 Date: Fri, 19 Apr 2024 10:51:07 +0530 Subject: [PATCH] G2P-2150: PMT Module: Fixed dropdown issue in program wizard. --- g2p_proxy_means_test/wizard/create_program_wizard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/g2p_proxy_means_test/wizard/create_program_wizard.py b/g2p_proxy_means_test/wizard/create_program_wizard.py index f7bcf1c0..de702552 100644 --- a/g2p_proxy_means_test/wizard/create_program_wizard.py +++ b/g2p_proxy_means_test/wizard/create_program_wizard.py @@ -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