From 5d0958c5b1811fcb8e0331bf0a4b3fa88a49195f Mon Sep 17 00:00:00 2001 From: "El-Shafei H." Date: Wed, 8 Oct 2025 09:51:13 +0300 Subject: [PATCH] feat: Cache employee name in session data on boot --- erpnext/startup/boot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/startup/boot.py b/erpnext/startup/boot.py index 1d56078453b..64a675111ca 100644 --- a/erpnext/startup/boot.py +++ b/erpnext/startup/boot.py @@ -85,3 +85,5 @@ def bootinfo(bootinfo): if employee: bootinfo["user"]["employee"] = employee frappe.session.data.employee = employee + else: + frappe.session.data.employee = ""