From 6dddad2d65d61ab25c640c1a142d6ff8cd7dd3c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 28 Feb 2009 16:54:51 +0100 Subject: [PATCH] Fix value_set in translate if value is None for issue828 --- tryton/gui/window/view_form/view/form_gtk/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/form_gtk/parser.py b/tryton/gui/window/view_form/view/form_gtk/parser.py index fb58a56c1d..575542081d 100644 --- a/tryton/gui/window/view_form/view/form_gtk/parser.py +++ b/tryton/gui/window/view_form/view/form_gtk/parser.py @@ -780,7 +780,7 @@ class ParserForm(ParserInterface): return None def value_set(widget, value): - if value == False: + if not value: value = '' if type(widget) == type(gtk.Entry()): widget.set_text(value)