From 6082036948de2d4dc83cfabb8a8295bff48819da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 9 May 2014 10:13:53 +0200 Subject: [PATCH] Use the right widget to get text in Char widget issue3898 review9301002 --- tryton/gui/window/view_form/view/form_gtk/char.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/form_gtk/char.py b/tryton/gui/window/view_form/view/form_gtk/char.py index ae25a916a4..3cf5a2a73c 100644 --- a/tryton/gui/window/view_form/view/form_gtk/char.py +++ b/tryton/gui/window/view_form/view/form_gtk/char.py @@ -92,7 +92,8 @@ class Char(WidgetInterface, TranslateMixin): return field.set_client(record, value) def get_value(self): - return self.entry.get_text() + entry = self.entry.get_child() if self.autocomplete else self.entry + return entry.get_text() def display(self, record, field): super(Char, self).display(record, field)