fix: guard against missing DocType in onboarding steps patch (#56804)

(cherry picked from commit caa4358057)
This commit is contained in:
Shllokkk
2026-07-02 19:33:16 +05:30
committed by Mergify
parent 003b6554c4
commit f72289e27c

View File

@@ -34,6 +34,7 @@ def complete_onboarding_steps_if_record_exists(steps):
if (
step.action == "Create Entry"
and step.reference_document
and frappe.db.exists("DocType", step.reference_document)
and frappe.get_all(step.reference_document, limit=1)
):
frappe.db.set_value("Onboarding Step", step.name, "is_complete", 1, update_modified=False)