Commit 67e40bd1 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

ERP5/InteractionWorkflow.py: get interaction guard expression text instead of...

ERP5/InteractionWorkflow.py: get interaction guard expression text instead of callable object in showAsXML.
parent 83615abd
......@@ -412,7 +412,9 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
guard_obj = getattr(tdef, 'guard')
if guard_obj is not None:
if prop_id in guard_obj.__dict__:
prop_value = guard_obj.__dict__[prop_id]
if prop_id == 'expr':
prop_value = getattr(guard_obj.expr, 'text', '')
else: prop_value = guard_obj.__dict__[prop_id]
else:
prop_value = ''
else:
......
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