Commit e2ead51a authored by Yoshinori Okuji's avatar Yoshinori Okuji

Add getPortalInventoryTypeList to identify inventory documents.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36477 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 61027f07
...@@ -1166,6 +1166,14 @@ class ERP5Site(FolderMixIn, CMFSite): ...@@ -1166,6 +1166,14 @@ class ERP5Site(FolderMixIn, CMFSite):
""" """
return self._getPortalGroupedTypeList('inventory_movement') return self._getPortalGroupedTypeList('inventory_movement')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalInventoryTypeList')
def getPortalInventoryTypeList(self):
"""
Return inventory types.
"""
return self._getPortalGroupedTypeList('inventory')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalMovementGroupTypeList') 'getPortalMovementGroupTypeList')
def getPortalMovementGroupTypeList(self): def getPortalMovementGroupTypeList(self):
......
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