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')