add debug

This commit is contained in:
Luiz Costa 2024-06-03 11:40:31 +01:00
parent 170f8ebe63
commit 3bb96c90e9

View File

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