From ec5c4a2bd5c8c7db5c8eeb4a628a1386822d1c63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 13 Apr 2011 14:23:54 +0200 Subject: [PATCH] order country on name instead of code --- country.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/country.py b/country.py index bc77ee6efc..c2ca3a1740 100644 --- a/country.py +++ b/country.py @@ -24,7 +24,7 @@ class Country(ModelSQL, ModelView): ('code_uniq', 'UNIQUE(code)', 'The code of the country must be unique!'), ] - self._order.insert(0, ('code', 'ASC')) + self._order.insert(0, ('name', 'ASC')) def search_rec_name(self, name, clause): ids = self.search([('code',) + clause[1:]], limit=1)