@@ -6,7 +6,7 @@ | |||||
"idx": 0, | "idx": 0, | ||||
"include_name_field": 1, | "include_name_field": 1, | ||||
"is_standard": 1, | "is_standard": 1, | ||||
"modified": "2021-11-24 17:25:18.317075", | |||||
"modified": "2021-11-25 17:03:01.646360", | |||||
"modified_by": "Administrator", | "modified_by": "Administrator", | ||||
"module": "Core", | "module": "Core", | ||||
"name": "Doctype", | "name": "Doctype", | ||||
@@ -15,7 +15,7 @@ | |||||
"save_on_complete": 1, | "save_on_complete": 1, | ||||
"steps": [ | "steps": [ | ||||
{ | { | ||||
"description": "Select a Module to which this Doctype would belong", | |||||
"description": "Select a Module to which this DocType would belong", | |||||
"field": "", | "field": "", | ||||
"fieldname": "module", | "fieldname": "module", | ||||
"fieldtype": "Link", | "fieldtype": "Link", | ||||
@@ -27,19 +27,20 @@ | |||||
"title": "Module" | "title": "Module" | ||||
}, | }, | ||||
{ | { | ||||
"description": "Check this to make the Docytpe as Custom", | |||||
"description": "Check this to make the DocType as Custom", | |||||
"field": "", | "field": "", | ||||
"fieldname": "custom", | "fieldname": "custom", | ||||
"fieldtype": "Check", | "fieldtype": "Check", | ||||
"has_next_condition": 0, | |||||
"has_next_condition": 1, | |||||
"is_table_field": 0, | "is_table_field": 0, | ||||
"label": "Custom?", | "label": "Custom?", | ||||
"next_step_condition": "eval: doc.custom", | |||||
"parent_field": "", | "parent_field": "", | ||||
"position": "Left", | "position": "Left", | ||||
"title": "Custom " | "title": "Custom " | ||||
}, | }, | ||||
{ | { | ||||
"description": "Add fields to this Custom Doctype", | |||||
"description": "A Field (or a docfield) defines a property of a DocType. You can define the column name, label, datatype and more for DocFields. For instance, a ToDo doctype has fields description, status and priority. These ultimately become columns in the database table tabToDo.", | |||||
"field": "", | "field": "", | ||||
"fieldname": "fields", | "fieldname": "fields", | ||||
"fieldtype": "Table", | "fieldtype": "Table", | ||||
@@ -18,6 +18,7 @@ frappe.ui.form.FormTour = class FormTour { | |||||
// if last step is to save, then attach a listener to save button | // if last step is to save, then attach a listener to save button | ||||
if (step.options.is_save_step) { | if (step.options.is_save_step) { | ||||
$(step.options.element).one('click', () => this.driver.reset()); | $(step.options.element).one('click', () => this.driver.reset()); | ||||
this.driver.overlay.refresh(); | |||||
} | } | ||||
// focus on input | // focus on input | ||||
@@ -54,7 +55,7 @@ frappe.ui.form.FormTour = class FormTour { | |||||
include_name_field() { | include_name_field() { | ||||
const name_step = { | const name_step = { | ||||
"description": "Enter a name", | |||||
"description": `Enter a name for this ${this.frm.doctype}`, | |||||
"fieldname": "__newname", | "fieldname": "__newname", | ||||
"title": "Name", | "title": "Name", | ||||
"position": "right", | "position": "right", | ||||
@@ -5,6 +5,8 @@ import getpass | |||||
from frappe.utils.password import update_password | from frappe.utils.password import update_password | ||||
def before_install(): | def before_install(): | ||||
frappe.reload_doc("desk", "doctype", "form_tour_step") | |||||
frappe.reload_doc("desk", "doctype", "form_tour") | |||||
frappe.reload_doc("core", "doctype", "docfield") | frappe.reload_doc("core", "doctype", "docfield") | ||||
frappe.reload_doc("core", "doctype", "docperm") | frappe.reload_doc("core", "doctype", "docperm") | ||||
frappe.reload_doc("core", "doctype", "doctype_action") | frappe.reload_doc("core", "doctype", "doctype_action") | ||||