From 0b8e36604f87968ab690df42e09fb91cc617329f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 14 Nov 2008 16:49:42 +0100 Subject: [PATCH] Don't display 'True' condition in print workflow --- trytond/workflow/workflow.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trytond/workflow/workflow.py b/trytond/workflow/workflow.py index 6fce8934d7..96c6092693 100644 --- a/trytond/workflow/workflow.py +++ b/trytond/workflow/workflow.py @@ -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'