Commit c59e4711 authored by Sebastien Robin's avatar Sebastien Robin

there is already a method for getting state of bt

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21729 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cc3ab8b7
......@@ -87,9 +87,7 @@ class ERP5SiteDocumentationHelper(DocumentationHelper):
bt_list = []
for bt in self.getDocumentedObject().portal_templates.objectValues():
current_state = ''
for wh in bt.workflow_history['business_template_installation_workflow']:
current_state = wh['installation_state']
if current_state == 'installed':
if bt.getInstallationState() == 'installed':
bt_list.append(bt.getId())
return bt_list
......
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