[FIX] base: the search for the res.country.state is not case sensitive
bzr revid: stephane@openerp.com-20100430094224-59w78o78347j2hf2
This commit is contained in:
@@ -86,7 +86,7 @@ class CountryState(osv.osv):
|
||||
args = []
|
||||
if not context:
|
||||
context = {}
|
||||
ids = self.search(cr, user, [('code', '=', name)] + args, limit=limit,
|
||||
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