Commit 45531bc7 authored by Nicolas Wavrant's avatar Nicolas Wavrant

ERP5Type, ERP5Site: new type group to get documents related to persons

parent 100026b0
...@@ -1495,6 +1495,14 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin): ...@@ -1495,6 +1495,14 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
""" """
return self._getPortalGroupedTypeList('module') return self._getPortalGroupedTypeList('module')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalPersonalItemTypeList')
def getPortalPersonalItemTypeList(self) :
"""
Return personal item types.
"""
return self._getPortalGroupedTypeList('personal_item')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalInventoryMovementTypeList') 'getPortalInventoryMovementTypeList')
def getPortalInventoryMovementTypeList(self): def getPortalInventoryMovementTypeList(self):
......
...@@ -302,6 +302,8 @@ class ERP5TypeInformation(XMLObject, ...@@ -302,6 +302,8 @@ class ERP5TypeInformation(XMLObject,
'budget_variation', 'budget_variation',
# Module # Module
'module', 'module',
# Document related to a person's assignment or career step
'personal_item',
# Base # Base
'entity', 'entity',
# LEGACY - needs a warning - XXX-JPS # LEGACY - needs a warning - XXX-JPS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment