Commit 4978058c authored by Guillaume Michon's avatar Guillaume Michon

Added portal_updatable_amortisation_transaction_state_list


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5879 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b405ca1c
...@@ -192,3 +192,4 @@ portal_draft_order_state_list = ('cancelled', 'draft', 'auto_planned' ) ...@@ -192,3 +192,4 @@ portal_draft_order_state_list = ('cancelled', 'draft', 'auto_planned' )
portal_planned_order_state_list = ('planned', 'ordered', ) portal_planned_order_state_list = ('planned', 'ordered', )
portal_reserved_inventory_state_list = ('confirmed', 'getting_ready', 'ready') portal_reserved_inventory_state_list = ('confirmed', 'getting_ready', 'ready')
portal_future_inventory_state_list = ('planned', 'ordered',) portal_future_inventory_state_list = ('planned', 'ordered',)
portal_updatable_amortisation_transaction_state_list = ('draft',)
...@@ -611,6 +611,13 @@ class ERP5Site ( FolderMixIn, CMFSite ): ...@@ -611,6 +611,13 @@ class ERP5Site ( FolderMixIn, CMFSite ):
return self._getPortalGroupedStateList('future_inventory') or\ return self._getPortalGroupedStateList('future_inventory') or\
self._getPortalConfiguration('portal_future_inventory_state_list') self._getPortalConfiguration('portal_future_inventory_state_list')
security.declareProtected(Permissions.AccessContentsInformation, 'getPortalUpdatableAmortisationTransactionStateList')
def getPortalUpdatableAmortisationTransactionStateList(self):
"""
Return states when Amortisation Transaction can be updated by amortisation_transaction_builder.
"""
return self._getPortalConfiguration('portal_updatable_amortisation_transaction_state_list')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalColumnBaseCategoryList') 'getPortalColumnBaseCategoryList')
def getPortalColumnBaseCategoryList(self): def getPortalColumnBaseCategoryList(self):
......
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