Commit e8253015 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

since getSearchableText is already well configurable in ERP5Type.Base, we...

since getSearchableText is already well configurable in ERP5Type.Base, we should no longer have such a definition here (and defining SearchableText() instead of getSearchableText() is bad anyway).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45069 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dde3d831
...@@ -83,25 +83,6 @@ class AccountingTransaction(Delivery): ...@@ -83,25 +83,6 @@ class AccountingTransaction(Delivery):
return section.getPortalType() != 'Person' return section.getPortalType() != 'Person'
return False return False
security.declareProtected(Permissions.AccessContentsInformation,
'SearchableText')
def SearchableText(self):
"""Text for full text search"""
text_list = []
for prop in ( self.getTitle(),
self.getDescription(),
self.getComment(),
self.getReference(),
self.getSourceReference(),
self.getDestinationReference(),
self.getSourceSectionTitle(),
self.getDestinationSectionTitle(),
self.getStartDate(),
self.getStopDate(), ):
if prop:
text_list.append(str(prop))
return ' '.join(text_list)
# Compatibility # Compatibility
# It may be necessary to create an alias after removing the Transaction class # It may be necessary to create an alias after removing the Transaction class
# Products.ERP5Type.Document.Transaction = AccountingTransaction # Products.ERP5Type.Document.Transaction = AccountingTransaction
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