mirror of
https://github.com/frappe/erpnext.git
synced 2026-07-20 11:22:28 +00:00
fix: guard against missing DocType in onboarding steps patch (#56804)
(cherry picked from commit caa4358057)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user