[IMP]base/res: improved name_search for checking args
bzr revid: sbh@tinyerp.com-20120320113230-blhsb47cfzfnfhi3
This commit is contained in:
@@ -300,6 +300,8 @@ class res_partner(osv.osv):
|
||||
WHERE partner.name || ' (' || COALESCE(company.name,'') || ')'
|
||||
''' + operator + ''' %s ''', (name,))
|
||||
ids = cr.fetchall()
|
||||
if args:
|
||||
ids = self.search(cr, uid, [('id', 'in', ids)] + args, limit=limit, context=context)
|
||||
if ids:
|
||||
return self.name_get(cr, uid, ids, context)
|
||||
return super(res_partner,self).name_search(cr, uid, name, args, operator=operator, context=context, limit=limit)
|
||||
|
||||
Reference in New Issue
Block a user