← Back to team overview

openerp-india team mailing list archive

[Bug 1104076] Re: [7.0]Exception on reset password (patch)

 

On clicking the 'reset password' link:

2013-01-25 11:00:27,793 5052 ERROR ? openerp.addons.auth_signup.controllers.main: error when resetting password
Traceback (most recent call last):
  File "/var/openobject-server/hsd-7.0/addons/auth_signup/controllers/main.py", line 79, in reset_password
    res_users.reset_password(cr, openerp.SUPERUSER_ID, login)
  File "/var/openobject-server/hsd-7.0/addons/auth_signup/res_users.py", line 240, in reset_password
    return self.action_reset_password(cr, uid, user_ids, context=context)
  File "/var/openobject-server/hsd-7.0/addons/auth_signup/res_users.py", line 251, in action_reset_password
    if context.get('create_user'):
AttributeError: 'NoneType' object has no attribute 'get'

(taken from server log)

** Changed in: openobject-addons
       Status: Incomplete => New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1104076

Title:
  [7.0]Exception on reset password (patch)

Status in OpenERP Addons (modules):
  New

Bug description:
  When resetting the password a test on context is missing in
  res_users.py of auth_signup

  Patch:

  === modified file 'auth_signup/res_users.py'
  --- auth_signup/res_users.py	2013-01-22 14:59:25 +0000
  +++ auth_signup/res_users.py	2013-01-24 14:09:39 +0000
  @@ -248,7 +248,7 @@
   
           # send email to users with their signup url
           template = False
  -        if context.get('create_user'):
  +        if context and context.get('create_user'):
               try:
                   template = self.pool.get('ir.model.data').get_object(cr, uid, 'auth_signup', 'set_password_email')
               except ValueError:

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1104076/+subscriptions


References