Skip to content

Commit

Permalink
Merge pull request #27 from mkumar-02/17.0-develop
Browse files Browse the repository at this point in the history
ID Deduplication: Added condition check if ID Type is not configured
  • Loading branch information
shibu-narayanan authored Jul 31, 2024
2 parents ef4ca01 + 508833d commit aec9e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g2p_registry_id_deduplication/models/registrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_id_types_with_kind(self, id_field, is_group):
ir_config = self.env["ir.config_parameter"].sudo()
id_type_ids_str = ir_config.get_param(f"g2p_registry_id_deduplication.{id_field}", default=None)

id_type_ids = id_type_ids_str.strip("][").split(", ")
id_type_ids = id_type_ids_str.strip("][").split(", ") if id_type_ids_str is not None else [""]
id_type_ids = id_type_ids if len(id_type_ids[0]) != 0 else []

if len(id_type_ids) < 1:
Expand Down

0 comments on commit aec9e79

Please sign in to comment.