From 3e9aca2d09640fecebd0cafe2aefa907c319ce4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 12 Nov 2013 16:45:42 +0100 Subject: [PATCH] Backed out changeset c909bd88517d Using rec_name to search key is wrong because rec_name is the string and not the key. issue3483 (transplanted from a674398cccb4b47ccabe34a2f1ea00e3d8fd6b53) --- 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 56f49a9802..42090b8ff3 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', - [('rec_name', '=', key)], 0, CONFIG['client.limit'], + [('name', '=', key)], 0, CONFIG['client.limit'], None, context=context) self.keys[key] = RPCExecute('model', self.schema_model, 'get_keys', key_ids, context=context)[0]