refactor: use Form Tour doc instead of controller form tour
note - keeping controller form tours as a fallback, new form tours seem to work only for Stock Settings
This commit is contained in:
parent
77ebbdd172
commit
f4487c3ae5
@ -0,0 +1,56 @@
|
||||
{
|
||||
"creation": "2021-08-20 16:02:59.314742",
|
||||
"docstatus": 0,
|
||||
"doctype": "Form Tour",
|
||||
"idx": 0,
|
||||
"is_standard": 1,
|
||||
"modified": "2021-08-20 16:05:40.593997",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Create a Stock Entry",
|
||||
"owner": "Administrator",
|
||||
"reference_doctype": "Stock Entry",
|
||||
"save_on_complete": 1,
|
||||
"steps": [
|
||||
{
|
||||
"description": "Select the type of Stock Entry to be made. For now, to receive stock into a warehouses select <a href=\"https://docs.erpnext.com/docs/v13/user/manual/en/stock/articles/stock-entry-purpose#2purpose-material-receipt\" target=\"_blank\">Material Receipt.</a>",
|
||||
"field": "",
|
||||
"fieldname": "stock_entry_type",
|
||||
"fieldtype": "Link",
|
||||
"has_next_condition": 1,
|
||||
"is_table_field": 0,
|
||||
"label": "Stock Entry Type",
|
||||
"next_step_condition": "eval: doc.stock_entry_type === \"Material Receipt\"",
|
||||
"parent_field": "",
|
||||
"position": "Top",
|
||||
"title": "Stock Entry Type"
|
||||
},
|
||||
{
|
||||
"description": "Select a target warehouse where the stock will be received.",
|
||||
"field": "",
|
||||
"fieldname": "to_warehouse",
|
||||
"fieldtype": "Link",
|
||||
"has_next_condition": 1,
|
||||
"is_table_field": 0,
|
||||
"label": "Default Target Warehouse",
|
||||
"next_step_condition": "eval: doc.to_warehouse",
|
||||
"parent_field": "",
|
||||
"position": "Top",
|
||||
"title": "Default Target Warehouse"
|
||||
},
|
||||
{
|
||||
"description": "Select an item and entry quantity to be delivered.",
|
||||
"field": "",
|
||||
"fieldname": "items",
|
||||
"fieldtype": "Table",
|
||||
"has_next_condition": 1,
|
||||
"is_table_field": 0,
|
||||
"label": "Items",
|
||||
"next_step_condition": "eval: doc.items[0]?.item_code",
|
||||
"parent_field": "",
|
||||
"position": "Bottom",
|
||||
"title": "Items"
|
||||
}
|
||||
],
|
||||
"title": "Create a Stock Entry"
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
{
|
||||
"creation": "2021-08-20 15:56:10.157109",
|
||||
"docstatus": 0,
|
||||
"doctype": "Form Tour",
|
||||
"idx": 0,
|
||||
"is_standard": 1,
|
||||
"modified": "2021-08-20 15:56:10.157109",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Create a Warehouse",
|
||||
"owner": "Administrator",
|
||||
"reference_doctype": "Warehouse",
|
||||
"save_on_complete": 1,
|
||||
"steps": [
|
||||
{
|
||||
"description": "Select a name for the warehouse. This should reflect its location or purpose.",
|
||||
"field": "",
|
||||
"fieldname": "warehouse_name",
|
||||
"fieldtype": "Data",
|
||||
"has_next_condition": 1,
|
||||
"is_table_field": 0,
|
||||
"label": "Warehouse Name",
|
||||
"next_step_condition": "eval: doc.warehouse_name",
|
||||
"parent_field": "",
|
||||
"position": "Bottom",
|
||||
"title": "Warehouse Name"
|
||||
},
|
||||
{
|
||||
"description": "Select a warehouse type to categorize the warehouse into a sub-group.",
|
||||
"field": "",
|
||||
"fieldname": "warehouse_type",
|
||||
"fieldtype": "Link",
|
||||
"has_next_condition": 0,
|
||||
"is_table_field": 0,
|
||||
"label": "Warehouse Type",
|
||||
"parent_field": "",
|
||||
"position": "Top",
|
||||
"title": "Warehouse Type"
|
||||
},
|
||||
{
|
||||
"description": "Select an account to set a default account for all transactions with this warehouse.",
|
||||
"field": "",
|
||||
"fieldname": "account",
|
||||
"fieldtype": "Link",
|
||||
"has_next_condition": 0,
|
||||
"is_table_field": 0,
|
||||
"label": "Account",
|
||||
"parent_field": "",
|
||||
"position": "Top",
|
||||
"title": "Account"
|
||||
}
|
||||
],
|
||||
"title": "Create a Warehouse"
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
{
|
||||
"creation": "2021-08-20 15:42:47.059290",
|
||||
"docstatus": 0,
|
||||
"doctype": "Form Tour",
|
||||
"idx": 0,
|
||||
"is_standard": 1,
|
||||
"modified": "2021-08-20 15:54:58.440497",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Create Warehouse",
|
||||
"owner": "Administrator",
|
||||
"reference_doctype": "Warehouse",
|
||||
"save_on_complete": 1,
|
||||
"steps": [
|
||||
{
|
||||
"description": "Select a name for the warehouse. This should reflect its location or purpose.",
|
||||
"field": "",
|
||||
"fieldname": "warehouse_name",
|
||||
"fieldtype": "Data",
|
||||
"has_next_condition": 1,
|
||||
"is_table_field": 0,
|
||||
"label": "Warehouse Name",
|
||||
"next_step_condition": "eval: doc.warehouse_name",
|
||||
"parent_field": "",
|
||||
"position": "Bottom",
|
||||
"title": "Warehouse Name"
|
||||
},
|
||||
{
|
||||
"description": "Select a warehouse type to categorize the warehouse into a sub-group.",
|
||||
"field": "",
|
||||
"fieldname": "warehouse_type",
|
||||
"fieldtype": "Link",
|
||||
"has_next_condition": 0,
|
||||
"is_table_field": 0,
|
||||
"label": "Warehouse Type",
|
||||
"parent_field": "",
|
||||
"position": "Top",
|
||||
"title": "Warehouse Type"
|
||||
},
|
||||
{
|
||||
"description": "Select an account to set a default account for all transactions with this warehouse.",
|
||||
"field": "",
|
||||
"fieldname": "account",
|
||||
"fieldtype": "Link",
|
||||
"has_next_condition": 0,
|
||||
"is_table_field": 0,
|
||||
"label": "Account",
|
||||
"parent_field": "",
|
||||
"position": "Top",
|
||||
"title": "Account"
|
||||
}
|
||||
],
|
||||
"title": "Create Warehouse"
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
{
|
||||
"creation": "2021-08-20 16:08:39.298267",
|
||||
"docstatus": 0,
|
||||
"doctype": "Form Tour",
|
||||
"idx": 0,
|
||||
"is_standard": 1,
|
||||
"modified": "2021-08-20 16:08:39.298267",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Stock Opening Balance",
|
||||
"owner": "Administrator",
|
||||
"reference_doctype": "Stock Reconciliation",
|
||||
"save_on_complete": 1,
|
||||
"steps": [
|
||||
{
|
||||
"description": "Set Purpose to Opening Stock to set the stock opening balance.",
|
||||
"field": "",
|
||||
"fieldname": "purpose",
|
||||
"fieldtype": "Select",
|
||||
"has_next_condition": 1,
|
||||
"is_table_field": 0,
|
||||
"label": "Purpose",
|
||||
"next_step_condition": "eval: doc.purpose === \"Opening Stock\"",
|
||||
"parent_field": "",
|
||||
"position": "Top",
|
||||
"title": "Purpose"
|
||||
},
|
||||
{
|
||||
"description": "Edit the Posting Date by clicking on the Edit Posting Date and Time checkbox below.",
|
||||
"field": "",
|
||||
"fieldname": "posting_date",
|
||||
"fieldtype": "Date",
|
||||
"has_next_condition": 0,
|
||||
"is_table_field": 0,
|
||||
"label": "Posting Date",
|
||||
"parent_field": "",
|
||||
"position": "Bottom",
|
||||
"title": "Posting Date"
|
||||
},
|
||||
{
|
||||
"description": "Select the items for which the opening stock has to be set.",
|
||||
"field": "",
|
||||
"fieldname": "items",
|
||||
"fieldtype": "Table",
|
||||
"has_next_condition": 1,
|
||||
"is_table_field": 0,
|
||||
"label": "Items",
|
||||
"next_step_condition": "eval: doc.items[0]?.item_code",
|
||||
"parent_field": "",
|
||||
"position": "Bottom",
|
||||
"title": "Items"
|
||||
}
|
||||
],
|
||||
"title": "Stock Opening Balance"
|
||||
}
|
89
erpnext/stock/form_tour/stock_settings/stock_settings.json
Normal file
89
erpnext/stock/form_tour/stock_settings/stock_settings.json
Normal file
@ -0,0 +1,89 @@
|
||||
{
|
||||
"creation": "2021-08-20 15:20:59.336585",
|
||||
"docstatus": 0,
|
||||
"doctype": "Form Tour",
|
||||
"idx": 0,
|
||||
"is_standard": 1,
|
||||
"modified": "2021-08-20 15:37:36.151783",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Stock Settings",
|
||||
"owner": "Administrator",
|
||||
"reference_doctype": "Stock Settings",
|
||||
"save_on_complete": 1,
|
||||
"steps": [
|
||||
{
|
||||
"description": "By default, the Item Name is set as per the Item Code entered. If you want Items to be named by a Naming Series choose the 'Naming Series' option.",
|
||||
"field": "",
|
||||
"fieldname": "item_naming_by",
|
||||
"fieldtype": "Select",
|
||||
"has_next_condition": 0,
|
||||
"is_table_field": 0,
|
||||
"label": "Item Naming By",
|
||||
"parent_field": "",
|
||||
"position": "Bottom",
|
||||
"title": "Item Naming By"
|
||||
},
|
||||
{
|
||||
"description": "Set a Default Warehouse for Inventory Transactions. This will be fetched into the Default Warehouse in the Item master.",
|
||||
"field": "",
|
||||
"fieldname": "default_warehouse",
|
||||
"fieldtype": "Link",
|
||||
"has_next_condition": 0,
|
||||
"is_table_field": 0,
|
||||
"label": "Default Warehouse",
|
||||
"parent_field": "",
|
||||
"position": "Bottom",
|
||||
"title": "Default Warehouse"
|
||||
},
|
||||
{
|
||||
"description": "Choose between FIFO and Moving Average Valuation Methods. Click <a href=\"https://docs.erpnext.com/docs/user/manual/en/stock/articles/item-valuation-fifo-and-moving-average\" target=\"_blank\">here</a> to know more about them.",
|
||||
"field": "",
|
||||
"fieldname": "valuation_method",
|
||||
"fieldtype": "Select",
|
||||
"has_next_condition": 0,
|
||||
"is_table_field": 0,
|
||||
"label": "Default Valuation Method",
|
||||
"parent_field": "",
|
||||
"position": "Bottom",
|
||||
"title": "Default Valuation Method"
|
||||
},
|
||||
{
|
||||
"description": "Show 'Scan Barcode' field above every child table to insert Items with ease.",
|
||||
"field": "",
|
||||
"fieldname": "show_barcode_field",
|
||||
"fieldtype": "Check",
|
||||
"has_next_condition": 0,
|
||||
"is_table_field": 0,
|
||||
"label": "Show Barcode Field in Stock Transactions",
|
||||
"parent_field": "",
|
||||
"position": "Bottom",
|
||||
"title": "Show Barcode Field"
|
||||
},
|
||||
{
|
||||
"description": "Quality inspection is performed on the inward and outward movement of goods. Receipt and delivery transactions will be stopped or the user will be warned if the quality inspection is not performed.",
|
||||
"field": "",
|
||||
"fieldname": "action_if_quality_inspection_is_not_submitted",
|
||||
"fieldtype": "Select",
|
||||
"has_next_condition": 0,
|
||||
"is_table_field": 0,
|
||||
"label": "Action If Quality Inspection Is Not Submitted",
|
||||
"parent_field": "",
|
||||
"position": "Bottom",
|
||||
"title": "Action if Quality Inspection Is Not Submitted"
|
||||
},
|
||||
{
|
||||
"description": "Serial numbers for stock will be set automatically based on the Items entered based on first in first out in transactions like Purchase/Sales Invoices, Delivery Notes, etc.",
|
||||
"field": "",
|
||||
"fieldname": "automatically_set_serial_nos_based_on_fifo",
|
||||
"fieldtype": "Check",
|
||||
"has_next_condition": 0,
|
||||
"is_table_field": 0,
|
||||
"label": "Automatically Set Serial Nos Based on FIFO",
|
||||
"parent_field": "",
|
||||
"position": "Bottom",
|
||||
"title": "Automatically Set Serial Nos based on FIFO"
|
||||
}
|
||||
],
|
||||
"title": "Stock Settings"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user