From db3268ebbd8b136e22810456dd6664b98e145e5d Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 20 May 2021 10:16:23 +0200 Subject: [PATCH] Convert identifier types into list to append to other list issue10420 review359621002 (grafted from 929a0e7d90aee9223a84b22470d1444f3c43b10f) --HG-- branch : 6.0 --- configuration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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