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',
'Packing Order','Production Order', 'Purchase Order', 'Sale Order',
'Sales Order', )
portal_open_order_type_list = ('Open Sale Order',
'Open Purchase Order',
'Open Internal Order',)
portal_delivery_type_list = ('Delivery',
'Transaction',
'Packing List',
......
......@@ -674,6 +674,15 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
return self._getPortalGroupedTypeList('order') or \
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,
'getPortalDeliveryTypeList')
def getPortalDeliveryTypeList(self):
......
......@@ -247,9 +247,10 @@ class ERP5TypeInformation(XMLObject,
'abstract',
# Trade
'discount', 'payment_condition', 'payment_node',
'supply', 'supply_path', 'inventory_movement',
'supply', 'supply_path', 'inventory_movement',
'delivery', 'delivery_movement',
'order', 'order_movement',
'open_order',
'container', 'container_line',
'inventory',
# 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