Call get_types to get identifier types
issue10714 review336861002
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user