From 01326d65c9611ed0da82ee2a6f0a4538f57ab3fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 7 Apr 2009 23:33:54 +0200 Subject: [PATCH] Use mode name if it is not in selection for issue951 --- tryton/gui/window/view_form/view/list_gtk/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/list_gtk/parser.py b/tryton/gui/window/view_form/view/list_gtk/parser.py index 556c0f68fd..64470293fc 100644 --- a/tryton/gui/window/view_form/view/list_gtk/parser.py +++ b/tryton/gui/window/view_form/view/list_gtk/parser.py @@ -750,7 +750,7 @@ class Reference(Char): except Exception, exception: common.process_exception(exception, self.window) name = '???' - return self._selection[model] + ',' + name + return self._selection.get(model, model) + ',' + name else: return name