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)
This commit is contained in:
1 parent
904e4d24cd
commit
3e9aca2d09
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',
|
||||
[('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]
|
||||
|
||||
Reference in new issue
Block a user