Files
enlight-lms/lms/patches/v2_0/open_to_work.py
2026-01-20 12:43:00 +05:30

9 lines
168 B
Python

import frappe
def execute():
open_to_field_exists = frappe.db.exists("Custom Field", {"dt": "User", "fieldname": "open_to"})
if not open_to_field_exists:
return