[FIX] Base : Country can be searched on Country codes independent to case
lp bug: https://launchpad.net/bugs/519204 fixed bzr revid: jvo@tinyerp.com-20100209094238-9sxar7uuz1g1ux0g
This commit is contained in:
@@ -48,7 +48,7 @@ class Country(osv.osv):
|
||||
context={}
|
||||
ids = False
|
||||
if len(name) == 2:
|
||||
ids = self.search(cr, user, [('code', '=', name)] + args,
|
||||
ids = self.search(cr, user, [('code', 'ilike', name)] + args,
|
||||
limit=limit, context=context)
|
||||
if not ids:
|
||||
ids = self.search(cr, user, [('name', operator, name)] + args,
|
||||
|
||||
Reference in New Issue
Block a user