Commit a2db2e72 authored by Jérome Perrin's avatar Jérome Perrin

added a group method for inventory movement types


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16372 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5f0b2cf1
......@@ -951,6 +951,14 @@ class ERP5Site(FolderMixIn, CMFSite):
"""
return self._getPortalGroupedTypeList('module')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalInventoryMovementTypeList')
def getPortalInventoryMovementTypeList(self):
"""
Return inventory movement types.
"""
return self._getPortalGroupedTypeList('inventory_movement')
security.declareProtected(Permissions.AccessContentsInformation,
'getDefaultModuleId')
def getDefaultModuleId(self, portal_type, default=MARKER):
......
......@@ -168,7 +168,7 @@ class ERP5TypeInformation( FactoryTypeInformation,
'container', 'container_line',
# Trade
'discount', 'payment_condition', 'payment_node',
'supply', 'supply_path',
'supply', 'supply_path', 'inventory_movement',
# PDM
'transformation', 'variation', 'sub_variation',
# Accounting
......
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