From e6768813860a3a62dcc44c1f66bebf698cd7c4fd Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Fri, 30 Apr 2010 11:42:24 +0200 Subject: [PATCH] [FIX] base: the search for the res.country.state is not case sensitive bzr revid: stephane@openerp.com-20100430094224-59w78o78347j2hf2 --- bin/addons/base/res/country.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/addons/base/res/country.py b/bin/addons/base/res/country.py index 272b0257a49..99e12a96f78 100644 --- a/bin/addons/base/res/country.py +++ b/bin/addons/base/res/country.py @@ -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,