[FIX] res.groups: ensure predictable sort order

Unfortunately the group names are translatable,
and the display name is based on the hierarchy
of groups, so this will not give a satisfactory
result. What we would need ideally is to be able
to sort on the translated "full name" value,
but this is not supported by the ORM yet.
But a stable order is still better than no
order at all

bzr revid: odo@openerp.com-20130522163201-f9zo7xnjvbs2mi97
This commit is contained in:
Olivier Dony 2013-05-22 18:32:01 +02:00
parent 13a68f8511
commit 823439f7e1
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class groups(osv.osv):
_name = "res.groups"
_description = "Access Groups"
_rec_name = 'full_name'
_order = 'name'
def _get_full_name(self, cr, uid, ids, field, arg, context=None):
res = {}