Call get_types to get identifier types

issue10714
review336861002
This commit is contained in:
Cédric Krier
2021-10-30 02:31:15 +02:00
parent f86522f7db
commit 1663d682a6
+1 -2
View File
@@ -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,