Skip to content
Snippets Groups Projects
Commit 2372d305 authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] web: pass name arg to name_search, because it seems that one module (or...

[FIX] web: pass name arg to name_search, because it seems that one module (or more) wrongly overwritten the method

bzr revid: dle@openerp.com-20140407110919-e0mvvhldkfe98qlq
parent 2686f48d
No related branches found
No related tags found
No related merge requests found
......@@ -1211,7 +1211,7 @@ class DataSet(http.Controller):
if method == 'read':
names = dict(request.session.model(model).name_get(args[0], **kwargs))
else:
names = dict(request.session.model(model).name_search(args=args[0], **kwargs))
names = dict(request.session.model(model).name_search('', args[0], **kwargs))
args[1].remove('display_name')
records = getattr(request.session.model(model), method)(*args, **kwargs)
for record in records:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment