diff --git a/g2p_registry_id_deduplication/models/registrant.py b/g2p_registry_id_deduplication/models/registrant.py index 1accf74..a1438c1 100644 --- a/g2p_registry_id_deduplication/models/registrant.py +++ b/g2p_registry_id_deduplication/models/registrant.py @@ -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: