From 18baff5fecbd5e65e0ffa7ebb237453db638d544 Mon Sep 17 00:00:00 2001 From: scmmishra Date: Thu, 18 Oct 2018 15:43:03 +0530 Subject: [PATCH] Minor changes to question doctype Co-authored-by: Chinmay Pai --- erpnext/config/education.py | 6 ++-- .../education/doctype/question/question.json | 8 ++--- .../doctype/quiz_question/quiz_question.json | 36 ++++++++++++++++++- 3 files changed, 42 insertions(+), 8 deletions(-) diff --git a/erpnext/config/education.py b/erpnext/config/education.py index ba6aa888b6..96f660a971 100644 --- a/erpnext/config/education.py +++ b/erpnext/config/education.py @@ -193,15 +193,15 @@ def get_data(): }, { "type": "doctype", - "name": "Content" + "name": "Article" }, { "type": "doctype", - "name": "Question" + "name": "Video" }, { "type": "doctype", - "name": "Instructor" + "name": "Quiz" }, { "type": "doctype", diff --git a/erpnext/education/doctype/question/question.json b/erpnext/education/doctype/question/question.json index c62d4a9aff..cca89cff50 100644 --- a/erpnext/education/doctype/question/question.json +++ b/erpnext/education/doctype/question/question.json @@ -16,20 +16,20 @@ "fields": [ { "allow_bulk_edit": 0, - "allow_in_quick_entry": 1, + "allow_in_quick_entry": 0, "allow_on_submit": 0, "bold": 0, "collapsible": 0, "columns": 0, "fieldname": "question", - "fieldtype": "Text", + "fieldtype": "Small Text", "hidden": 0, "ignore_user_permissions": 0, "ignore_xss_filter": 0, "in_filter": 0, "in_global_search": 0, "in_list_view": 1, - "in_standard_filter": 1, + "in_standard_filter": 0, "label": "Question", "length": 0, "no_copy": 0, @@ -91,7 +91,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2018-10-17 12:08:05.649254", + "modified": "2018-10-18 15:31:28.471650", "modified_by": "Administrator", "module": "Education", "name": "Question", diff --git a/erpnext/education/doctype/quiz_question/quiz_question.json b/erpnext/education/doctype/quiz_question/quiz_question.json index 8cdb3e44af..3857c5ca8d 100644 --- a/erpnext/education/doctype/quiz_question/quiz_question.json +++ b/erpnext/education/doctype/quiz_question/quiz_question.json @@ -45,6 +45,40 @@ "set_only_once": 0, "translatable": 0, "unique": 0 + }, + { + "allow_bulk_edit": 0, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "columns": 0, + "fetch_from": "question_link.question", + "fieldname": "question", + "fieldtype": "Data", + "hidden": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_standard_filter": 0, + "label": "Question", + "length": 0, + "no_copy": 0, + "options": "", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "read_only": 1, + "remember_last_selected_value": 0, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "set_only_once": 0, + "translatable": 0, + "unique": 0 } ], "has_web_view": 0, @@ -57,7 +91,7 @@ "issingle": 0, "istable": 1, "max_attachments": 0, - "modified": "2018-10-17 06:13:00.098883", + "modified": "2018-10-18 15:35:12.195250", "modified_by": "Administrator", "module": "Education", "name": "Quiz Question",