diff --git a/configuration.py b/configuration.py index 9633e16336..e3ec556168 100644 --- a/configuration.py +++ b/configuration.py @@ -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