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