diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py index 984aaa790eacdc16def6c9f72fd5a540c28fbd78..5f121489dabc6fc74987eebba854d8a324d03aa1 100755 --- a/product/ERP5Type/Base.py +++ b/product/ERP5Type/Base.py @@ -1535,6 +1535,12 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): security.declareProtected( Permissions.View, 'Title' ) Title = getTitleOrId + security.declareProtected(Permissions.View, 'getTranslatedTitle') + def getTranslatedTitle(self): + """Returns the translated title. """ + translation_service = getToolByName(self, 'translation_service') + return translation_service.translate('content', self.getTitle()).encode('utf8') + # This method allows to sort objects in list is a more reasonable way security.declareProtected(Permissions.View, 'getIntId') def getIntId(self):