diff --git a/product/ERP5/Document/Document.py b/product/ERP5/Document/Document.py index 698d7fbc5cf3456bc43cd5c29b241aa8bf62e542..7d0c4f759f8a1300008ae1771a51d3c6dc39173e 100644 --- a/product/ERP5/Document/Document.py +++ b/product/ERP5/Document/Document.py @@ -455,6 +455,13 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin): """ we try to get a list, else we get value and convert to list """ + method = getattr(self, property, None) + if method is not None: + if callable(method): + val = method() + if isinstance(val, list) or isinstance(val, tuple): + return list(val) + return [str(val)] val = self.getPropertyList(property) if val is None: val = self.getProperty(property)