Merge pull request #39019 from sokumon/onboarding

This commit is contained in:
Soham Kulkarni 2026-04-30 01:31:28 +05:30 committed by GitHub
commit 3bc0a61826
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -661,6 +661,9 @@ def update_onboarding_step(name: str | int, field: str, value: int | str):
""" """
from frappe.utils.telemetry import capture from frappe.utils.telemetry import capture
allowed_fields = ["is_skipped", "is_complete"]
if field not in allowed_fields:
return
frappe.db.set_value("Onboarding Step", name, field, value) frappe.db.set_value("Onboarding Step", name, field, value)
capture(frappe.scrub(name), app="frappe_onboarding", properties={field: value}) capture(frappe.scrub(name), app="frappe_onboarding", properties={field: value})