[fix] problem when creating a new user without specifying any groups

bzr revid: nicolas.vanhoren@openerp.com-20110922093819-zzz9y9rt1seklhr1
This commit is contained in:
niv-openerp 2011-09-22 11:38:19 +02:00
parent ef4795dbe6
commit 2508d7b985
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ class users_implied(osv.osv):
_inherit = 'res.users'
def create(self, cr, uid, values, context=None):
groups = values.pop('groups_id')
groups = values.pop('groups_id', None)
user_id = super(users_implied, self).create(cr, uid, values, context)
if groups:
# delegate addition of groups to add implied groups