From 852a5303d45f8972cb9eefcfeef96b3695de4f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 18 Apr 2013 10:21:12 +0200 Subject: [PATCH] value in DictEntry.set_value could be None set_text must always be called with a string. --- tryton/gui/window/view_form/view/form_gtk/dictionary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/form_gtk/dictionary.py b/tryton/gui/window/view_form/view/form_gtk/dictionary.py index f613a50660..7bbd56b53b 100644 --- a/tryton/gui/window/view_form/view/form_gtk/dictionary.py +++ b/tryton/gui/window/view_form/view/form_gtk/dictionary.py @@ -45,7 +45,7 @@ class DictEntry(object): return self.widget.get_text() def set_value(self, value): - return self.widget.set_text(value) + return self.widget.set_text(value or '') def set_readonly(self, readonly): self.widget.set_editable(not readonly)