[FIX] res_users: change password wizard: fixed crash when submitting the form.
Indeed unlinking wizard content before actually closing it seems to cause a crash. Instead of unlinking lines with user - password data we now write a void value on the new password. The stored content does not contain valuable data after submitting the form. bzr revid: tde@openerp.com-20140304115017-posdyri9y1cra4jo
This commit is contained in:
@@ -55,7 +55,7 @@ class change_password_wizard(osv.TransientModel):
|
||||
user_ids.append(user.id)
|
||||
self.pool.get('change.password.user').change_password_button(cr, uid, user_ids, context=context)
|
||||
# don't keep temporary password copies in the database longer than necessary
|
||||
self.pool.get('change.password.user').unlink(cr, uid, user_ids)
|
||||
self.pool.get('change.password.user').write(cr, uid, user_ids, {'new_passwd': False})
|
||||
return {
|
||||
'type': 'ir.actions.act_window_close',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user