[FIX] res_user: typo when deleting group with more than 4 users
bzr revid: odo@openerp.com-20110619124042-qjoqges5b5jpxr59
This commit is contained in:
@@ -582,8 +582,7 @@ class groups2(osv.osv): ##FIXME: Is there a reason to inherit this object ?
|
||||
if group_users:
|
||||
user_names = [user.name for user in self.pool.get('res.users').browse(cr, uid, group_users, context=context)]
|
||||
if len(user_names) >= 5:
|
||||
user_names = user_names[:5]
|
||||
user_names += '...'
|
||||
user_names = user_names[:5] + ['...']
|
||||
raise osv.except_osv(_('Warning !'),
|
||||
_('Group(s) cannot be deleted, because some user(s) still belong to them: %s !') % \
|
||||
', '.join(user_names))
|
||||
|
||||
Reference in New Issue
Block a user