From e5242ef709fb6e919e14237b5573e13e2b9307c7 Mon Sep 17 00:00:00 2001 From: Luiz Costa Date: Mon, 3 Jun 2024 11:40:58 +0100 Subject: [PATCH] use name insted --- msp_remoteadmin/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msp_remoteadmin/tools.py b/msp_remoteadmin/tools.py index 37662a6..1c666e1 100644 --- a/msp_remoteadmin/tools.py +++ b/msp_remoteadmin/tools.py @@ -30,7 +30,7 @@ def create_session(doc, protocol): token = None if token: # Get credentials from IT User Account - acc_doc = frappe.get_doc('IT User Account', doc.title) + acc_doc = frappe.get_doc('IT User Account', doc.name) print(acc_doc) username = acc_doc.username password = acc_doc.get_password('password')