Commit 833990b7 authored by Jérome Perrin's avatar Jérome Perrin

add a portal type group for open orders


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43739 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea2a46ac
...@@ -55,6 +55,10 @@ portal_order_type_list = ('Order', 'Project', 'Samples Order', ...@@ -55,6 +55,10 @@ portal_order_type_list = ('Order', 'Project', 'Samples Order',
'Packing Order','Production Order', 'Purchase Order', 'Sale Order', 'Packing Order','Production Order', 'Purchase Order', 'Sale Order',
'Sales Order', ) 'Sales Order', )
portal_open_order_type_list = ('Open Sale Order',
'Open Purchase Order',
'Open Internal Order',)
portal_delivery_type_list = ('Delivery', portal_delivery_type_list = ('Delivery',
'Transaction', 'Transaction',
'Packing List', 'Packing List',
......
...@@ -674,6 +674,15 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin): ...@@ -674,6 +674,15 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
return self._getPortalGroupedTypeList('order') or \ return self._getPortalGroupedTypeList('order') or \
self._getPortalConfiguration('portal_order_type_list') self._getPortalConfiguration('portal_order_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalOpenOrderTypeList')
def getPortalOpenOrderTypeList(self):
"""
Return open order types.
"""
return self._getPortalGroupedTypeList('open_order') or \
self._getPortalConfiguration('portal_open_order_type_list')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalDeliveryTypeList') 'getPortalDeliveryTypeList')
def getPortalDeliveryTypeList(self): def getPortalDeliveryTypeList(self):
......
...@@ -250,6 +250,7 @@ class ERP5TypeInformation(XMLObject, ...@@ -250,6 +250,7 @@ class ERP5TypeInformation(XMLObject,
'supply', 'supply_path', 'inventory_movement', 'supply', 'supply_path', 'inventory_movement',
'delivery', 'delivery_movement', 'delivery', 'delivery_movement',
'order', 'order_movement', 'order', 'order_movement',
'open_order',
'container', 'container_line', 'container', 'container_line',
'inventory', 'inventory',
# Different Aspects of Supplier-Customer relation # Different Aspects of Supplier-Customer relation
......
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