Merge pull request #39019 from sokumon/onboarding
This commit is contained in:
commit
3bc0a61826
1 changed files with 3 additions and 0 deletions
|
|
@ -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})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue