chore: frappe-ui tree shaking changes

This commit is contained in:
Jannat Patel
2025-11-26 15:06:21 +05:30
parent 3be3124951
commit 924a11e4f4
8 changed files with 21 additions and 22 deletions

View File

@@ -1678,7 +1678,18 @@ def get_profile_details(username):
details = frappe.db.get_value(
"User",
{"username": username},
["full_name", "name", "username", "user_image", "bio", "headline", "cover_image"],
[
"first_name",
"last_name",
"full_name",
"name",
"username",
"user_image",
"bio",
"headline",
"language",
"cover_image",
],
as_dict=True,
)

View File

@@ -19,7 +19,7 @@ class LMSCertificate(Document):
self.name = make_autoname("hash", self.doctype)
def after_insert(self):
if not frappe.flags.in_test:
if not frappe.in_test:
outgoing_email_account = frappe.get_cached_value(
"Email Account", {"default_outgoing": 1, "enable_outgoing": 1}, "name"
)