Don't display 'True' condition in print workflow
This commit is contained in:
1 parent
35e2412134
commit
0b8e36604f
1 file changed
+4
-2
@@ -341,8 +341,10 @@ class InstanceGraph(Report):
|
||||
context=context)
|
||||
for transition in transitions:
|
||||
args = {}
|
||||
args['label'] = str(transition.condition).replace(' or ',
|
||||
'\\nor ').replace(' and ', '\\nand ')
|
||||
args['label'] = ' '
|
||||
if transition.condition != 'True':
|
||||
args['label'] += str(transition.condition).replace(' or ',
|
||||
'\\nor ').replace(' and ', '\\nand ')
|
||||
if transition.signal:
|
||||
args['label'] += '\\n' + str(transition.signal)
|
||||
args['style'] = 'bold'
|
||||
|
||||
Reference in new issue
Block a user