fix: renamed open to opportunities to open to work

This commit is contained in:
Jannat Patel
2026-01-20 12:43:00 +05:30
parent f7a0fc8b5f
commit c2d6e160d9
8 changed files with 27 additions and 18 deletions

View File

@@ -257,12 +257,12 @@
"length": 0,
"link_filters": null,
"mandatory_depends_on": null,
"modified": "2025-12-24 12:56:32.110405",
"modified": "2025-12-24 12:56:32.110406",
"module": null,
"name": "User-open_to",
"no_copy": 0,
"non_negative": 0,
"options": "\nOpportunities\nHiring",
"options": "\nWork\nHiring",
"permlevel": 0,
"precision": "",
"print_hide": 0,

View File

@@ -331,8 +331,8 @@ def get_certification_query(filters):
)
if field == "member_name":
query = query.where(Certificate.member_name.like(value[1]))
if field == "open_to_opportunities":
query = query.where(User.open_to == "Opportunities")
if field == "open_to_work":
query = query.where(User.open_to == "Work")
if field == "hiring":
query = query.where(User.open_to == "Hiring")
return query

View File

@@ -114,4 +114,5 @@ lms.patches.v2_0.count_in_program
lms.patches.v2_0.fix_scorm_lesson_reference_idx #02-09-2025
lms.patches.v2_0.certified_members_to_certifications #05-10-2025
lms.patches.v2_0.fix_job_application_resume_urls
lms.patches.v2_0.open_to_opportunities
lms.patches.v2_0.open_to_opportunities
lms.patches.v2_0.open_to_work

View File

@@ -0,0 +1,8 @@
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