diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index fd7c7d37c25ea2f3703e12a625515632769cad54..670b3809d3a46fe3dbb88534aab281e120d10c19 100755 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -275,6 +275,14 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): """ initializeClassDynamicProperties(self, self.__class__) + def _propertyMap(self): + """ Method overload - properties are now defined on the ptype """ + global aq_portal_type + ptype = self.portal_type + self._aq_dynamic(None) # Make sure aq_dynamic has been called once + return tuple(list(getattr(aq_portal_type[ptype], '_properties', None)) + + list(getattr(self, '_local_properties', ()))) + def _aq_dynamic(self, id): global aq_portal_type ptype = self.portal_type