diff --git a/school/fixtures/custom_field.json b/school/fixtures/custom_field.json index 7841848e..0eb474a6 100644 --- a/school/fixtures/custom_field.json +++ b/school/fixtures/custom_field.json @@ -27,6 +27,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "username", + "is_virtual": 0, "label": "Country", "length": 0, "mandatory_depends_on": null, @@ -36,9 +37,6 @@ "no_copy": 0, "non_negative": 0, "options": "Country", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -81,18 +79,16 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "country", + "is_virtual": 0, "label": "Acceptance for Terms of Use and/or Privacy Policy", "length": 0, "mandatory_depends_on": null, - "modified": "2021-12-31 19:15:34.932909", + "modified": "2021-12-31 19:15:34.932910", "module": null, "name": "User-verify_terms", "no_copy": 0, "non_negative": 0, "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -107,60 +103,6 @@ "unique": 0, "width": null }, - { - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "doctype": "Custom Field", - "dt": "User", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "city", - "fieldtype": "Data", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "mute_sounds", - "label": "City", - "length": 0, - "mandatory_depends_on": null, - "modified": "2021-12-31 14:46:55.834145", - "module": null, - "name": "User-city", - "no_copy": 0, - "non_negative": 0, - "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 1, - "unique": 0, - "width": null - }, { "allow_in_quick_entry": 0, "allow_on_submit": 0, @@ -188,19 +130,17 @@ "in_list_view": 0, "in_preview": 0, "in_standard_filter": 0, - "insert_after": "city", + "insert_after": "desk_theme", + "is_virtual": 0, "label": "College Name", "length": 0, "mandatory_depends_on": null, - "modified": "2021-12-31 14:46:55.834145", + "modified": "2022-01-12 16:37:25.418147", "module": null, "name": "User-college", "no_copy": 0, "non_negative": 0, "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -243,6 +183,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "college", + "is_virtual": 0, "label": "Branch", "length": 0, "mandatory_depends_on": null, @@ -252,9 +193,110 @@ "no_copy": 0, "non_negative": 0, "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "translatable": 1, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "User", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "headline", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "mute_sounds", + "is_virtual": 0, + "label": "Headline", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-02-23 17:37:11.025946", + "module": "", + "name": "User-headline", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "translatable": 1, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "User", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "city", + "fieldtype": "Data", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "headline", + "is_virtual": 0, + "label": "City", + "length": 0, + "mandatory_depends_on": null, + "modified": "2022-01-12 16:37:13.419068", + "module": null, + "name": "User-city", + "no_copy": 0, + "non_negative": 0, + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -297,6 +339,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "mobile_no", + "is_virtual": 0, "label": "LinkedIn ID", "length": 0, "mandatory_depends_on": null, @@ -306,9 +349,6 @@ "no_copy": 0, "non_negative": 0, "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -351,6 +391,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "linkedin", + "is_virtual": 0, "label": "Github ID", "length": 0, "mandatory_depends_on": null, @@ -360,9 +401,6 @@ "no_copy": 0, "non_negative": 0, "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -405,6 +443,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "github", + "is_virtual": 0, "label": "Medium ID", "length": 0, "mandatory_depends_on": null, @@ -414,9 +453,6 @@ "no_copy": 0, "non_negative": 0, "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -459,6 +495,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "medium", + "is_virtual": 0, "label": "Profession", "length": 0, "mandatory_depends_on": null, @@ -468,9 +505,6 @@ "no_copy": 0, "non_negative": 0, "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -513,6 +547,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "profession", + "is_virtual": 0, "label": "Education Details", "length": 0, "mandatory_depends_on": null, @@ -522,63 +557,6 @@ "no_copy": 0, "non_negative": 0, "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": null, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "translatable": 0, - "unique": 0, - "width": null - }, - { - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": null, - "depends_on": null, - "description": "Private Information includes your Grade and Work Environment Preferences", - "docstatus": 0, - "doctype": "Custom Field", - "dt": "User", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "hide_private", - "fieldtype": "Check", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_preview": 0, - "in_standard_filter": 0, - "insert_after": "profession", - "label": "Hide my Private Information from others", - "length": 0, - "mandatory_depends_on": null, - "modified": "2021-12-31 11:57:47.942968", - "module": null, - "name": "User-hide_my_private_information_from_others", - "no_copy": 0, - "non_negative": 0, - "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -621,6 +599,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "hide_private", + "is_virtual": 0, "label": "Profile Complete", "length": 0, "mandatory_depends_on": null, @@ -630,9 +609,58 @@ "no_copy": 0, "non_negative": 0, "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "translatable": 0, + "unique": 0, + "width": null + }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": "Private Information includes your Grade and Work Environment Preferences", + "docstatus": 0, + "doctype": "Custom Field", + "dt": "User", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "hide_private", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "profession", + "is_virtual": 0, + "label": "Hide my Private Information from others", + "length": 0, + "mandatory_depends_on": null, + "modified": "2021-12-31 11:57:47.942968", + "module": null, + "name": "User-hide_my_private_information_from_others", + "no_copy": 0, + "non_negative": 0, + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -675,6 +703,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "profile_complete", + "is_virtual": 0, "label": "Cover Image", "length": 0, "mandatory_depends_on": null, @@ -684,9 +713,6 @@ "no_copy": 0, "non_negative": 0, "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -729,6 +755,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "cover_image", + "is_virtual": 0, "label": "I am looking for a job", "length": 0, "mandatory_depends_on": null, @@ -738,9 +765,6 @@ "no_copy": 0, "non_negative": 0, "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -783,6 +807,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "education_details", + "is_virtual": 0, "label": "Education", "length": 0, "mandatory_depends_on": null, @@ -792,9 +817,6 @@ "no_copy": 0, "non_negative": 0, "options": "Education Detail", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -837,6 +859,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "education", + "is_virtual": 0, "label": "Work Experience Details", "length": 0, "mandatory_depends_on": null, @@ -846,9 +869,6 @@ "no_copy": 0, "non_negative": 0, "options": null, - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -891,6 +911,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "work_experience_details", + "is_virtual": 0, "label": "Work Experience", "length": 0, "mandatory_depends_on": null, @@ -900,9 +921,6 @@ "no_copy": 0, "non_negative": 0, "options": "Work Experience", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -945,6 +963,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "work_experience", + "is_virtual": 0, "label": "Volunteering or Internship", "length": 0, "mandatory_depends_on": null, @@ -954,9 +973,6 @@ "no_copy": 0, "non_negative": 0, "options": "Work Experience", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -999,6 +1015,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "internship", + "is_virtual": 0, "label": "Certification Details", "length": 0, "mandatory_depends_on": null, @@ -1008,9 +1025,6 @@ "no_copy": 0, "non_negative": 0, "options": "", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1053,6 +1067,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "certification_details", + "is_virtual": 0, "label": "Certification", "length": 0, "mandatory_depends_on": null, @@ -1062,9 +1077,6 @@ "no_copy": 0, "non_negative": 0, "options": "Certification", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1107,6 +1119,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "certification", + "is_virtual": 0, "label": "Skill Details", "length": 0, "mandatory_depends_on": null, @@ -1116,9 +1129,6 @@ "no_copy": 0, "non_negative": 0, "options": "", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1161,6 +1171,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "skill_details", + "is_virtual": 0, "label": "Skill", "length": 0, "mandatory_depends_on": null, @@ -1170,9 +1181,6 @@ "no_copy": 0, "non_negative": 0, "options": "Skills", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1215,6 +1223,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "skill", + "is_virtual": 0, "label": "Career Preference Details", "length": 0, "mandatory_depends_on": null, @@ -1224,9 +1233,6 @@ "no_copy": 0, "non_negative": 0, "options": "", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1269,6 +1275,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "carrer_preference_details", + "is_virtual": 0, "label": "Preferred Functions", "length": 0, "mandatory_depends_on": null, @@ -1278,9 +1285,6 @@ "no_copy": 0, "non_negative": 0, "options": "Preferred Function", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1323,6 +1327,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "preferred_functions", + "is_virtual": 0, "label": "Preferred Location", "length": 0, "mandatory_depends_on": null, @@ -1331,10 +1336,7 @@ "name": "User-preferred_location", "no_copy": 0, "non_negative": 0, - "options": "", - "parent": null, - "parentfield": null, - "parenttype": null, + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1377,6 +1379,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "preferred_location", + "is_virtual": 0, "label": "", "length": 0, "mandatory_depends_on": null, @@ -1386,9 +1389,6 @@ "no_copy": 0, "non_negative": 0, "options": "", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1431,6 +1431,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "career_preference_column", + "is_virtual": 0, "label": "Preferred Industries", "length": 0, "mandatory_depends_on": null, @@ -1440,9 +1441,6 @@ "no_copy": 0, "non_negative": 0, "options": "Preferred Industry", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1485,6 +1483,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "preferred_industries", + "is_virtual": 0, "label": "Dream Companies", "length": 0, "mandatory_depends_on": null, @@ -1493,10 +1492,7 @@ "name": "User-dream_companies", "no_copy": 0, "non_negative": 0, - "options": "", - "parent": null, - "parentfield": null, - "parenttype": null, + "options": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1539,6 +1535,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "dream_companies", + "is_virtual": 0, "label": "Work Environment", "length": 0, "mandatory_depends_on": null, @@ -1548,9 +1545,6 @@ "no_copy": 0, "non_negative": 0, "options": "", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1593,6 +1587,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "work_environment", + "is_virtual": 0, "label": "Attire Preference", "length": 0, "mandatory_depends_on": null, @@ -1602,9 +1597,6 @@ "no_copy": 0, "non_negative": 0, "options": "Casual Wear\nFormal Wear", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1647,6 +1639,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "attire", + "is_virtual": 0, "label": "Collaboration Preference", "length": 0, "mandatory_depends_on": null, @@ -1656,9 +1649,6 @@ "no_copy": 0, "non_negative": 0, "options": "Individual Work\nTeam Work\nBoth Individual and Team Work", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1701,6 +1691,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "collaboration", + "is_virtual": 0, "label": "Role Preference", "length": 0, "mandatory_depends_on": null, @@ -1710,9 +1701,6 @@ "no_copy": 0, "non_negative": 0, "options": "Clearly Defined Role\nUnstructured Role", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1755,6 +1743,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "role", + "is_virtual": 0, "label": "", "length": 0, "mandatory_depends_on": null, @@ -1764,9 +1753,6 @@ "no_copy": 0, "non_negative": 0, "options": "", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1809,6 +1795,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "work_environment_column", + "is_virtual": 0, "label": "Location Preference", "length": 0, "mandatory_depends_on": null, @@ -1818,9 +1805,6 @@ "no_copy": 0, "non_negative": 0, "options": "Travel\nOffice close to Home", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1863,6 +1847,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "location_preference", + "is_virtual": 0, "label": "Time Preference", "length": 0, "mandatory_depends_on": null, @@ -1872,9 +1857,6 @@ "no_copy": 0, "non_negative": 0, "options": "Flexible Time\nFixed 9-5", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, @@ -1917,6 +1899,7 @@ "in_preview": 0, "in_standard_filter": 0, "insert_after": "time", + "is_virtual": 0, "label": "Company Type", "length": 0, "mandatory_depends_on": null, @@ -1926,9 +1909,6 @@ "no_copy": 0, "non_negative": 0, "options": "Corporate Organization\nStartup Organization", - "parent": null, - "parentfield": null, - "parenttype": null, "permlevel": 0, "precision": "", "print_hide": 0, diff --git a/school/fixtures/function.json b/school/fixtures/function.json index b1701cd2..57db32c8 100644 --- a/school/fixtures/function.json +++ b/school/fixtures/function.json @@ -4,159 +4,111 @@ "doctype": "Function", "function": "Consulting", "modified": "2021-12-14 15:16:26.189604", - "name": "Consulting", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Consulting" }, { "docstatus": 0, "doctype": "Function", "function": "Data & Analytics", "modified": "2021-12-14 15:16:26.341051", - "name": "Data & Analytics", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Data & Analytics" }, { "docstatus": 0, "doctype": "Function", "function": "Design & Creative", "modified": "2021-12-14 15:16:26.343820", - "name": "Design & Creative", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Design & Creative" }, { "docstatus": 0, "doctype": "Function", "function": "Engineering (Non Software)", "modified": "2021-12-14 15:16:26.346329", - "name": "Engineering (Non Software)", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Engineering (Non Software)" }, { "docstatus": 0, "doctype": "Function", "function": "Finance, Investment & Accounting", "modified": "2021-12-14 15:16:26.351518", - "name": "Finance, Investment & Accounting", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Finance, Investment & Accounting" }, { "docstatus": 0, "doctype": "Function", "function": "Human Resource & Recruiting", "modified": "2021-12-14 15:16:26.354310", - "name": "Human Resource & Recruiting", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Human Resource & Recruiting" }, { "docstatus": 0, "doctype": "Function", "function": "Legal", "modified": "2021-12-14 15:16:26.356844", - "name": "Legal", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Legal" }, { "docstatus": 0, "doctype": "Function", "function": "Marketing, Advertising & PR", "modified": "2021-12-14 15:16:26.359511", - "name": "Marketing, Advertising & PR", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Marketing, Advertising & PR" }, { "docstatus": 0, "doctype": "Function", "function": "Operations & Admin", "modified": "2021-12-14 15:16:26.362571", - "name": "Operations & Admin", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Operations & Admin" }, { "docstatus": 0, "doctype": "Function", "function": "Project Management", "modified": "2021-12-14 15:16:26.365033", - "name": "Project Management", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Project Management" }, { "docstatus": 0, "doctype": "Function", "function": "Product", "modified": "2021-12-14 15:16:26.367804", - "name": "Product", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Product" }, { "docstatus": 0, "doctype": "Function", "function": "Research, Training & Education", "modified": "2021-12-14 15:16:26.370085", - "name": "Research, Training & Education", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Research, Training & Education" }, { "docstatus": 0, "doctype": "Function", "function": "Sales & Customer Service", "modified": "2021-12-14 15:16:26.372635", - "name": "Sales & Customer Service", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Sales & Customer Service" }, { "docstatus": 0, "doctype": "Function", "function": "Supply Chain, Logistics Strategy & Management", "modified": "2021-12-14 15:16:26.375091", - "name": "Supply Chain, Logistics Strategy & Management", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Supply Chain, Logistics Strategy & Management" }, { "docstatus": 0, "doctype": "Function", "function": "Other", "modified": "2021-12-14 15:16:26.377761", - "name": "Other", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Other" }, { "docstatus": 0, "doctype": "Function", "function": "Engineering (Software & IT)", "modified": "2021-12-14 15:16:26.348864", - "name": "Engineering (Software & IT)", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Engineering (Software & IT)" } ] \ No newline at end of file diff --git a/school/fixtures/industry.json b/school/fixtures/industry.json index b14f4804..964b4a28 100644 --- a/school/fixtures/industry.json +++ b/school/fixtures/industry.json @@ -4,239 +4,167 @@ "doctype": "Industry", "industry": "Accounting", "modified": "2021-12-14 15:21:18.044741", - "name": "Accounting", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Accounting" }, { "docstatus": 0, "doctype": "Industry", "industry": "Ads, Marketing, PR & Events", "modified": "2021-12-14 15:21:18.069794", - "name": "Ads, Marketing, PR & Events", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Ads, Marketing, PR & Events" }, { "docstatus": 0, "doctype": "Industry", "industry": "Agriculture, Fishing & Forestry", "modified": "2021-12-14 15:21:18.074148", - "name": "Agriculture, Fishing & Forestry", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Agriculture, Fishing & Forestry" }, { "docstatus": 0, "doctype": "Industry", "industry": "Architecture", "modified": "2021-12-14 15:21:18.078250", - "name": "Architecture", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Architecture" }, { "docstatus": 0, "doctype": "Industry", "industry": "Aviation & Aerospace", "modified": "2021-12-14 15:21:18.082127", - "name": "Aviation & Aerospace", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Aviation & Aerospace" }, { "docstatus": 0, "doctype": "Industry", "industry": "Banking, Financial Services & Insurance", "modified": "2021-12-14 15:21:18.087499", - "name": "Banking, Financial Services & Insurance", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Banking, Financial Services & Insurance" }, { "docstatus": 0, "doctype": "Industry", "industry": "Biotech & Pharmaceuticals", "modified": "2021-12-14 15:21:18.092094", - "name": "Biotech & Pharmaceuticals", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Biotech & Pharmaceuticals" }, { "docstatus": 0, "doctype": "Industry", "industry": "Construction & Real Estate", "modified": "2021-12-14 15:21:18.095728", - "name": "Construction & Real Estate", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Construction & Real Estate" }, { "docstatus": 0, "doctype": "Industry", "industry": "Consulting & Professional Services", "modified": "2021-12-14 15:21:18.099171", - "name": "Consulting & Professional Services", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Consulting & Professional Services" }, { "docstatus": 0, "doctype": "Industry", "industry": "Energy & Utilities", "modified": "2021-12-14 15:21:18.114022", - "name": "Energy & Utilities", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Energy & Utilities" }, { "docstatus": 0, "doctype": "Industry", "industry": "Food & Beverages", "modified": "2021-12-14 15:21:18.124655", - "name": "Food & Beverages", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Food & Beverages" }, { "docstatus": 0, "doctype": "Industry", "industry": "Health & Medical", "modified": "2021-12-14 15:21:18.127914", - "name": "Health & Medical", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Health & Medical" }, { "docstatus": 0, "doctype": "Industry", "industry": "Hospitality & Tourism", "modified": "2021-12-14 15:21:18.130783", - "name": "Hospitality & Tourism", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Hospitality & Tourism" }, { "docstatus": 0, "doctype": "Industry", "industry": "IT / Ecommerce / Internet", "modified": "2021-12-14 15:21:18.134069", - "name": "IT / Ecommerce / Internet", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "IT / Ecommerce / Internet" }, { "docstatus": 0, "doctype": "Industry", "industry": "Manufacturing & Production", "modified": "2021-12-14 15:21:18.137362", - "name": "Manufacturing & Production", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Manufacturing & Production" }, { "docstatus": 0, "doctype": "Industry", "industry": "Media & Entertainment", "modified": "2021-12-14 15:21:18.140180", - "name": "Media & Entertainment", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Media & Entertainment" }, { "docstatus": 0, "doctype": "Industry", "industry": "Public Service & NGOs", "modified": "2021-12-14 15:21:18.143125", - "name": "Public Service & NGOs", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Public Service & NGOs" }, { "docstatus": 0, "doctype": "Industry", "industry": "Retail, Fashion & FMCG", "modified": "2021-12-14 15:21:18.146020", - "name": "Retail, Fashion & FMCG", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Retail, Fashion & FMCG" }, { "docstatus": 0, "doctype": "Industry", "industry": "Staffing & Recruiting", "modified": "2021-12-14 15:21:18.149084", - "name": "Staffing & Recruiting", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Staffing & Recruiting" }, { "docstatus": 0, "doctype": "Industry", "industry": "Transportation & Logistics", "modified": "2021-12-14 15:21:18.151952", - "name": "Transportation & Logistics", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Transportation & Logistics" }, { "docstatus": 0, "doctype": "Industry", "industry": "Security & Law Enforcement", "modified": "2021-12-14 15:21:18.154929", - "name": "Security & Law Enforcement", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Security & Law Enforcement" }, { "docstatus": 0, "doctype": "Industry", "industry": "Other", "modified": "2021-12-14 15:21:18.157766", - "name": "Other", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Other" }, { "docstatus": 0, "doctype": "Industry", "industry": "Education & Training", "modified": "2021-12-14 15:21:18.105864", - "name": "Education & Training", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Education & Training" }, { "docstatus": 0, "doctype": "Industry", "industry": "Engineering", "modified": "2021-12-14 15:21:18.119149", - "name": "Engineering", - "parent": null, - "parentfield": null, - "parenttype": null + "name": "Engineering" } ] \ No newline at end of file diff --git a/school/lms/doctype/lms_course/lms_course.py b/school/lms/doctype/lms_course/lms_course.py index 6632b0ef..24b2c9c2 100644 --- a/school/lms/doctype/lms_course/lms_course.py +++ b/school/lms/doctype/lms_course/lms_course.py @@ -33,13 +33,12 @@ class LMSCourse(Document): for user in interested_users: args["first_name"] = frappe.db.get_value("User", user.user, "first_name") email_args = frappe._dict( - recipients = user.user, - subject = subject, - header = [subject, "green"], - template = "lms_course_interest", - args = args, - now = True - ) + recipients = user.user, + subject = subject, + header = [subject, "green"], + template = "lms_course_interest", + args = args, + now = True) frappe.enqueue(method=frappe.sendmail, queue='short', timeout=300, is_async=True, **email_args) frappe.db.set_value("LMS Course Interest", user.name, "email_sent", True)