Commit f0a4cdf1 authored by Romain Courteaud's avatar Romain Courteaud

WIP TemplateTool: draft bt5 crashes

parent 06f07c4d
......@@ -140,8 +140,12 @@ class TemplateTool (BaseTool):
if state == 'installed':
return bt
if state == 'not_installed':
try:
last_transition = bt.workflow_history \
['business_template_installation_workflow'][-1]
except TypeError:
continue
else:
if last_transition['action'] == 'uninstall': # There is not uninstalled state !
t = last_transition['time']
if last_time < t:
......
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