[FIX] auth_signup: translate exception

The exception raised when resetting the password must be translated.
This commit is contained in:
Ludwik Trammer 2015-06-29 11:24:34 +02:00 committed by Goffin Simon
parent ece10c3401
commit e9c5da3524
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ class res_users(osv.Model):
if not user_ids:
user_ids = self.search(cr, uid, [('email', '=', login)], context=context)
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)
def action_reset_password(self, cr, uid, ids, context=None):