From a63d1b70ed3aec59d64fa129286fd2a23ae52423 Mon Sep 17 00:00:00 2001 From: Luiz Costa Date: Mon, 3 Jun 2024 11:56:18 +0100 Subject: [PATCH] change ref --- 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 13872fb..74ad144 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.name) + acc_doc = frappe.get_doc('IT User Account', doc.link) print(f"Print doc values: {acc_doc}") username = acc_doc.username password = acc_doc.get_password('password')