order country on name instead of code

This commit is contained in:
Cédric Krier committed 2011-04-13 14:23:54 +02:00
1 parent 1f69ed3ad9
commit ec5c4a2bd5
1 file changed
+1 -1
+1 -1
View File
@@ -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)