Convert identifier types into list to append to other list
issue10420 review359621002 (grafted from 929a0e7d90aee9223a84b22470d1444f3c43b10f) --HG-- branch : 6.0
This commit is contained in:
1 parent
47bf447133
commit
db3268ebbd
1 file changed
+2
-1
+2
-1
@@ -73,8 +73,9 @@ class Configuration(ModelSingleton, ModelSQL, ModelView, MultiValueMixin):
|
||||
pool = Pool()
|
||||
Identifier = pool.get('party.identifier')
|
||||
if self.identifier_types:
|
||||
identifier_types = [None, ''] + list(self.identifier_types)
|
||||
identifiers = Identifier.search([
|
||||
('type', 'not in', [None, ''] + self.identifier_types),
|
||||
('type', 'not in', identifier_types),
|
||||
], limit=1, order=[])
|
||||
if identifiers:
|
||||
identifier, = identifiers
|
||||
|
||||
Reference in new issue
Block a user