fix: open to work patch
This commit is contained in:
@@ -6,3 +6,7 @@ def execute():
|
|||||||
|
|
||||||
if not open_to_field_exists:
|
if not open_to_field_exists:
|
||||||
return
|
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")
|
||||||
|
|||||||
Reference in New Issue
Block a user