From 5cea03270be0cb3f602e431feaa49d18ede3fd00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 27 Feb 2009 13:41:03 +0100 Subject: [PATCH] Use tuple value in selection widget for model field to ensure compatibility with M2O --- tryton/gui/window/view_form/view/form_gtk/selection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/form_gtk/selection.py b/tryton/gui/window/view_form/view/form_gtk/selection.py index 1be825ad4e..2cd345d4b8 100644 --- a/tryton/gui/window/view_form/view/form_gtk/selection.py +++ b/tryton/gui/window/view_form/view/form_gtk/selection.py @@ -89,7 +89,7 @@ class Selection(WidgetInterface): def value_get(self): child = self.entry.get_child() res = child.get_text() - return self._selection.get(res, False) + return self._selection.get(res, False), res def sig_key_press(self, widget, event): if event.type == gtk.gdk.KEY_PRESS \