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