Commit 14f69591 authored by Sebastien Robin's avatar Sebastien Robin

cleanup


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1956 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97564647
......@@ -35,7 +35,7 @@ from Products.ERP5.Document.Coordinate import Coordinate
import string
class BankAccount(Coordinate, Folder):
class BankAccount(Folder, Coordinate):
"""
A bank account number holds a collection of numbers
and codes (ex. SWIFT, RIB, etc.) which may be used to
......@@ -67,50 +67,6 @@ class BankAccount(Coordinate, Folder):
# Declarative interfaces
__implements__ = ( Interface.Coordinate )
# Factory Type Information
factory_type_information = \
{ 'id' : portal_type
, 'meta_type' : meta_type
, 'description' : """\
A bank account number holds a collection of numbers
and codes (ex. SWIFT, RIB, etc.) which may be used to
identify a bank account."""
, 'icon' : 'bank_account_icon.gif'
, 'product' : 'ERP5'
, 'factory' : 'addBankAccount'
, 'immediate_view' : 'bank_account_edit'
, 'actions' :
( { 'id' : 'view'
, 'name' : 'View'
, 'category' : 'object_view'
, 'action' : 'bank_account_edit'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'category' : 'object_print'
, 'action' : 'bank_account_print'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
, 'category' : 'object_view'
, 'action' : 'metadata_edit'
, 'permissions' : (
Permissions.View, )
}
, { 'id' : 'translate'
, 'name' : 'Translate'
, 'category' : 'object_action'
, 'action' : 'translation_template_view'
, 'permissions' : (
Permissions.TranslateContent, )
}
)
}
security.declareProtected(Permissions.View, 'asText')
def asText(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