Commit 3801e40a authored by Jérome Perrin's avatar Jérome Perrin

remove unused hideFromAddMenu method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10268 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f8eaeeaf
...@@ -144,9 +144,9 @@ class ERP5TypeInformation( FactoryTypeInformation, ...@@ -144,9 +144,9 @@ class ERP5TypeInformation( FactoryTypeInformation,
# Groups are used to classify portal types (e.g. resource). # Groups are used to classify portal types (e.g. resource).
defined_group_list = ( defined_group_list = (
'accounting_transaction', 'accounting_movement', 'alarm', 'balance_transaction_line', 'accounting_transaction', 'accounting_movement', 'alarm',
'container', 'container_line', 'delivery', 'delivery_movement', 'balance_transaction_line', 'container', 'container_line', 'delivery',
'discount', 'invoice', 'invoice_movement', 'item', 'delivery_movement', 'discount', 'invoice', 'invoice_movement', 'item',
'order', 'order_movement', 'node', 'payment_node', 'payment_condition', 'order', 'order_movement', 'node', 'payment_node', 'payment_condition',
'resource', 'supply', 'supply_path', 'transformation', 'variation', 'resource', 'supply', 'supply_path', 'transformation', 'variation',
'sub_variation', 'web_document', 'event', 'ticket', 'dms_document' 'sub_variation', 'web_document', 'event', 'ticket', 'dms_document'
...@@ -166,15 +166,6 @@ class ERP5TypeInformation( FactoryTypeInformation, ...@@ -166,15 +166,6 @@ class ERP5TypeInformation( FactoryTypeInformation,
self.setMethodAliases({}) self.setMethodAliases({})
return 1 return 1
security.declarePublic('hideFromAddMenu')
def hidenFromAddMenu(self):
"""
Return only true or false if we should
hide from add menu
"""
return self.hiden_from_add_menu
# #
# Agent methods # Agent methods
# #
...@@ -627,7 +618,8 @@ class ERP5TypeInformation( FactoryTypeInformation, ...@@ -627,7 +618,8 @@ class ERP5TypeInformation( FactoryTypeInformation,
_aq_reset() # XXX We should also call it whenever we change workflow defition _aq_reset() # XXX We should also call it whenever we change workflow defition
return result return result
security.declareProtected( Permissions.ManagePortal, 'manage_editLocalRolesForm' ) security.declareProtected( Permissions.ManagePortal,
'manage_editLocalRolesForm' )
def manage_editLocalRolesForm( self, REQUEST, manage_tabs_message=None ): def manage_editLocalRolesForm( self, REQUEST, manage_tabs_message=None ):
""" Show the 'Local Roles' management tab. """ Show the 'Local Roles' management tab.
......
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