fix: open to work patch

This commit is contained in:
Jannat Patel
2026-01-20 15:47:55 +05:30
parent c2d6e160d9
commit afbdb46fe8

View File

@@ -6,3 +6,7 @@ def execute():
if not open_to_field_exists:
return
open_to_opportunities = frappe.get_all("User", {"open_to": "Opportunities"}, ["name"])
for user in open_to_opportunities:
frappe.db.set_value("User", user.name, "open_to", "Work")