This patch deletes the wizard lines rather than
the wizard record itself, to avoid errors in case
the client reloads the wizard data before actually
closing it.
lp bug: https://launchpad.net/bugs/1271165 fixed
bzr revid: odo@openerp.com-
20140206164559-j0j9o30im0u2hl2g
for user in wizard.user_ids:
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)
return {
'type': 'ir.actions.act_window_close',
}