[FIX] res.users: exactly match login when operator in ilike, equal
This commit is contained in:
parent
bd52298073
commit
eeb1f0355c
|
@ -353,7 +353,7 @@ class res_users(osv.osv):
|
|||
if not context:
|
||||
context={}
|
||||
ids = []
|
||||
if name:
|
||||
if name and operator in ['=', 'ilike']:
|
||||
ids = self.search(cr, user, [('login','=',name)]+ args, limit=limit, context=context)
|
||||
if not ids:
|
||||
ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit, context=context)
|
||||
|
|
Loading…
Reference in New Issue