Dict widget must use rec_name to search key

review1401002
This commit is contained in:
Cédric Krier committed 2013-10-30 00:38:41 +01:00
1 parent 7f7d6cf268
commit 3c7ce7b36c
1 file changed
+1 -1
@@ -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]