From 1663d682a6a5805227d00cc164ab5d2ef29ec689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 30 Oct 2021 02:31:15 +0200 Subject: [PATCH] Call get_types to get identifier types issue10714 review336861002 --- party.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/party.py b/party.py index 39d9f716c2..a5ae87c25e 100644 --- a/party.py +++ b/party.py @@ -64,8 +64,7 @@ class Party(metaclass=PoolMeta): if identifier.type == name: return identifier.sepa_identifier else: - selection = Identifier.fields_get(['type'])['type']['selection'] - type = dict(selection).get(name, name) + type = dict(Identifier.get_types()).get(name, name) raise PartyIdentificationdError( gettext('account_payment_sepa.msg_party_no_id', party=self.rec_name,