Backed out changeset d645aee76ab0

issue11262
This commit is contained in:
Cédric Krier committed 2022-03-20 01:32:04 +01:00
1 parent b6c1e21101
commit 33d19bd8f5
1 file changed
+2 -4
+2 -4
View File
@@ -45,10 +45,8 @@ class MultiValueMixin(object):
return record
def __values(self, field, pattern, match_none=True):
Value = self.multivalue_model(field)
# Limit the cache to matching records
return Value.browse((v for v in self.multivalue_records(field)
if v.match(pattern, match_none=match_none)))
return [v for v in self.multivalue_records(field)
if v.match(pattern, match_none=match_none)]
def get_multivalue(self, name, **pattern):
Value = self.multivalue_model(name)