Commit 95855582 authored by Yusuke Muraoka's avatar Yusuke Muraoka

added portal type informations for bpm to site

transformation will understand trade_phase instead of industrial_phase

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26881 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b0fb16ae
...@@ -180,6 +180,10 @@ portal_supply_type_list = ('Purchase Supply','Sale Supply') ...@@ -180,6 +180,10 @@ portal_supply_type_list = ('Purchase Supply','Sale Supply')
portal_supply_path_type_list = ('Supply Line','Supply Cell') portal_supply_path_type_list = ('Supply Line','Supply Cell')
portal_business_process_type_list = ('Business Process',)
portal_business_state_type_list = ('Business State',)
portal_business_path_type_list = ('Business Path',)
# This transaction lines are special because destination must be None. # This transaction lines are special because destination must be None.
portal_balance_transaction_line_type_list = ('Balance Transaction Line',) portal_balance_transaction_line_type_list = ('Balance Transaction Line',)
...@@ -208,3 +212,4 @@ portal_current_inventory_state_list = ('delivered', 'started', 'stopped', 'invoi ...@@ -208,3 +212,4 @@ portal_current_inventory_state_list = ('delivered', 'started', 'stopped', 'invoi
# invoiced is Coramy specific and should be removed # invoiced is Coramy specific and should be removed
portal_updatable_amortisation_transaction_state_list = ('draft',) portal_updatable_amortisation_transaction_state_list = ('draft',)
...@@ -736,6 +736,33 @@ class ERP5Site(FolderMixIn, CMFSite): ...@@ -736,6 +736,33 @@ class ERP5Site(FolderMixIn, CMFSite):
return self._getPortalGroupedTypeList('supply_path') or \ return self._getPortalGroupedTypeList('supply_path') or \
self._getPortalConfiguration('portal_supply_path_type_list') self._getPortalConfiguration('portal_supply_path_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalBusinessProcessTypeList')
def getPortalBusinessProcessTypeList(self):
"""
Return business process types.
"""
return self._getPortalGroupedTypeList('business_process') or \
self._getPortalConfiguration('portal_business_process_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalBusinessStateTypeList')
def getPortalBusinessStateTypeList(self):
"""
Return business state types.
"""
return self._getPortalGroupedTypeList('business_state') or \
self._getPortalConfiguration('portal_business_state_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalBusinessPathTypeList')
def getPortalBusinessPathTypeList(self):
"""
Return business path types.
"""
return self._getPortalGroupedTypeList('business_path') or \
self._getPortalConfiguration('portal_business_path_type_list')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalAcquisitionMovementTypeList') 'getPortalAcquisitionMovementTypeList')
def getPortalAcquisitionMovementTypeList(self): def getPortalAcquisitionMovementTypeList(self):
......
...@@ -57,4 +57,4 @@ class TransformedResource: ...@@ -57,4 +57,4 @@ class TransformedResource:
# 'mode' : 'w' }, # 'mode' : 'w' },
) )
_categories = ('specialise', 'industrial_phase', 'option') _categories = ('specialise', 'industrial_phase', 'option', 'trade_phase')
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