'Override this method to plug additional authentication methods'

@api.model
def check_credentials(self, password):

    user = self.sudo().search([('id', '=', self._uid), ('password', '=', password)])
    if (not user):
        raise AccessDenied()
