[CLA] Ludwik Trammer
This commit is contained in:
parent
7863e04f42
commit
ece10c3401
|
@ -264,7 +264,7 @@ class res_users(osv.Model):
|
||||||
if not user_ids:
|
if not user_ids:
|
||||||
user_ids = self.search(cr, uid, [('email', '=', login)], context=context)
|
user_ids = self.search(cr, uid, [('email', '=', login)], context=context)
|
||||||
if len(user_ids) != 1:
|
if len(user_ids) != 1:
|
||||||
raise Exception('Reset password: invalid username or email')
|
raise Exception(_("Reset password: invalid username or email"))
|
||||||
return self.action_reset_password(cr, uid, user_ids, context=context)
|
return self.action_reset_password(cr, uid, user_ids, context=context)
|
||||||
|
|
||||||
def action_reset_password(self, cr, uid, ids, context=None):
|
def action_reset_password(self, cr, uid, ids, context=None):
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
Poland, 2015-05-25
|
||||||
|
|
||||||
|
I hereby agree to the terms of the Odoo Individual Contributor License
|
||||||
|
Agreement v1.0.
|
||||||
|
|
||||||
|
I declare that I am authorized and able to make this agreement and sign this
|
||||||
|
declaration.
|
||||||
|
|
||||||
|
Signed,
|
||||||
|
|
||||||
|
Ludwik Trammer ludwik@gmail.com https://github.com/ludwiktrammer
|
Loading…
Reference in New Issue