[FIX] auth_signup: if not context: context = {}
bzr revid: chm@openerp.com-20130416103002-sdbrpbnwxkx0qcpw
This commit is contained in:
parent
ca03b6de1c
commit
329459237f
|
@ -269,6 +269,8 @@ class res_users(osv.Model):
|
||||||
user_id = super(res_users, self).create(cr, uid, values, context=context)
|
user_id = super(res_users, self).create(cr, uid, values, context=context)
|
||||||
user = self.browse(cr, uid, user_id, context=context)
|
user = self.browse(cr, uid, user_id, context=context)
|
||||||
if user.email and (not context or not context.get('no_reset_password')):
|
if user.email and (not context or not context.get('no_reset_password')):
|
||||||
ctx = dict(context, create_user=True)
|
if not context:
|
||||||
self.action_reset_password(cr, uid, [user.id], context=ctx)
|
context = {}
|
||||||
|
context.update({'create_user': True})
|
||||||
|
self.action_reset_password(cr, uid, [user.id], context=context)
|
||||||
return user_id
|
return user_id
|
||||||
|
|
Loading…
Reference in New Issue