mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-14 07:01:56 +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 (
|
if (
|
||||||
step.action == "Create Entry"
|
step.action == "Create Entry"
|
||||||
and step.reference_document
|
and step.reference_document
|
||||||
|
and frappe.db.exists("DocType", step.reference_document)
|
||||||
and frappe.get_all(step.reference_document, limit=1)
|
and frappe.get_all(step.reference_document, limit=1)
|
||||||
):
|
):
|
||||||
frappe.db.set_value("Onboarding Step", step.name, "is_complete", 1, update_modified=False)
|
frappe.db.set_value("Onboarding Step", step.name, "is_complete", 1, update_modified=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user