{"record":{"id":"76754caaeaccd8c3","repo":"odoo/odoo","slug":"no-account-found-for-this-login","errorCode":null,"errorMessage":"No account found for this login","messagePattern":"No account found for this login","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"addons/auth_signup/models/res_users.py","lineNumber":139,"sourceCode":"\n        # create a copy of the template user (attached to a specific partner_id if given)\n        values['active'] = True\n        try:\n            with self.env.cr.savepoint():\n                return template_user.with_context(no_reset_password=True).copy(values)\n        except Exception as e:\n            # copy may failed if asked login is not available.\n            raise SignupError(str(e))\n\n    def reset_password(self, login):\n        \"\"\" retrieve the user corresponding to login (login or email),\n            and reset their password\n        \"\"\"\n        users = self.search(self._get_login_domain(login))\n        if not users:\n            users = self.search(self._get_email_domain(login))\n        if not users:\n            raise Exception(_('No account found for this login'))\n        if len(users) > 1:\n            raise Exception(_('Multiple accounts found for this login'))\n        return users.action_reset_password()\n\n    def action_reset_password(self):\n        try:\n            if self.env.context.get('create_user') == 1:\n                return self._action_reset_password(signup_type=\"signup\")\n            else:\n                return self._action_reset_password(signup_type=\"reset\")\n        except MailDeliveryException as mde:\n            if len(mde.args) == 2 and isinstance(mde.args[1], ConnectionRefusedError):\n                raise UserError(_(\"Could not contact the mail server, please check your outgoing email server configuration\")) from mde\n            else:\n                raise UserError(_(\"There was an error when trying to deliver your Email, please check your configuration\")) from mde\n\n    def _action_reset_password(self, signup_type=\"reset\"):\n        \"\"\" create signup token for each user, and send their signup url by email \"\"\"","sourceCodeStart":121,"sourceCodeEnd":157,"githubUrl":"https://github.com/odoo/odoo/blob/1e661df964b1b264c9cef3ab28430d4785be3fda/addons/auth_signup/models/res_users.py#L121-L157","documentation":"Error \"No account found for this login\" thrown in odoo/odoo.","triggerScenarios":"Thrown at addons/auth_signup/models/res_users.py:139 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the login/email spelling, or sign up for a new account instead of resetting a password."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1e661df964b1b264c9cef3ab28430d4785be3fda","analyzedAt":"2026-08-15T05:22:16.142Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}