change ref

This commit is contained in:
Luiz Costa 2024-06-03 11:56:18 +01:00
parent adbacc04f6
commit a63d1b70ed

View File

@ -30,7 +30,7 @@ def create_session(doc, protocol):
token = None token = None
if token: if token:
# Get credentials from IT User Account # 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}") print(f"Print doc values: {acc_doc}")
username = acc_doc.username username = acc_doc.username
password = acc_doc.get_password('password') password = acc_doc.get_password('password')