From 6a5c13c0188a2d91ab7dd73f52c35b6680daa06d Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Tue, 9 Feb 2010 15:12:38 +0530 Subject: [PATCH] [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 --- 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 11d8b06f4da..4472ff24c71 100644 --- a/bin/addons/base/res/country.py +++ b/bin/addons/base/res/country.py @@ -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,