From 3c7ce7b36cd8060736f37d32e89f0a16f3d5160d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 30 Oct 2013 00:38:41 +0100 Subject: [PATCH] Dict widget must use rec_name to search key review1401002 --- 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 42090b8ff3..56f49a9802 100644 --- a/tryton/gui/window/view_form/view/form_gtk/dictionary.py +++ b/tryton/gui/window/view_form/view/form_gtk/dictionary.py @@ -481,7 +481,7 @@ class DictWidget(WidgetInterface): context = self.field.context_get(self.record) try: key_ids = RPCExecute('model', self.schema_model, 'search', - [('name', '=', key)], 0, CONFIG['client.limit'], + [('rec_name', '=', key)], 0, CONFIG['client.limit'], None, context=context) self.keys[key] = RPCExecute('model', self.schema_model, 'get_keys', key_ids, context=context)[0]