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): ...@@ -951,6 +951,14 @@ class ERP5Site(FolderMixIn, CMFSite):
""" """
return self._getPortalGroupedTypeList('module') 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, security.declareProtected(Permissions.AccessContentsInformation,
'getDefaultModuleId') 'getDefaultModuleId')
def getDefaultModuleId(self, portal_type, default=MARKER): def getDefaultModuleId(self, portal_type, default=MARKER):
......
...@@ -162,13 +162,13 @@ class ERP5TypeInformation( FactoryTypeInformation, ...@@ -162,13 +162,13 @@ class ERP5TypeInformation( FactoryTypeInformation,
# Framework # Framework
'alarm', 'alarm',
# ERP5 UBM (5 Classes) # ERP5 UBM (5 Classes)
'resource', 'node', 'item', 'resource', 'node', 'item',
'delivery', 'delivery_movement', 'delivery', 'delivery_movement',
'order', 'order_movement', 'order', 'order_movement',
'container', 'container_line', 'container', 'container_line',
# Trade # Trade
'discount', 'payment_condition', 'payment_node', 'discount', 'payment_condition', 'payment_node',
'supply', 'supply_path', 'supply', 'supply_path', 'inventory_movement',
# PDM # PDM
'transformation', 'variation', 'sub_variation', 'transformation', 'variation', 'sub_variation',
# Accounting # 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