Call get_types to get identifier types
issue10714 review336861002 (grafted from d963b6c0e5e94436eb2d40f61d2a14368e3c93b0) --HG-- branch : 6.0
This commit is contained in:
1 parent
afd87e632b
commit
2f1b701add
1 file changed
+1
-2
@@ -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