fix: rename form tours to doctype names, remove tours from js controllers

This commit is contained in:
18alantom 2021-08-24 14:54:38 +05:30
parent 810bce8da2
commit ad735522cb
8 changed files with 12 additions and 155 deletions

View File

@ -1102,20 +1102,3 @@ function check_should_not_attach_bom_items(bom_no) {
$.extend(cur_frm.cscript, new erpnext.stock.StockEntry({frm: cur_frm}));
frappe.tour['Stock Entry'] = [
{
fieldname: "stock_entry_type",
title: __("Stock Entry Type"),
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>"
},
{
fieldname: "to_warehouse",
title: __("Default Target Warehouse"),
description: __("Select a target warehouse where the stock will be received.")
},
{
fieldname: "items",
title: __("Items"),
description: __("Select an item and entry quantity to be delivered.")
},
]

View File

@ -303,20 +303,3 @@ erpnext.stock.StockReconciliation = class StockReconciliation extends erpnext.st
cur_frm.cscript = new erpnext.stock.StockReconciliation({frm: cur_frm});
frappe.tour['Stock Reconciliation'] = [
{
fieldname: "purpose",
title: __("Purpose"),
description: __("Set Purpose to Opening Stock to set the stock opening balance.")
},
{
fieldname: "posting_date",
title: __("Posting Date"),
description: __("Edit the Posting Date by clicking on the Edit Posting Date and Time checkbox below.")
},
{
fieldname: "items",
title: __("Items"),
description: __("Select the items for which the opening stock has to be set.")
},
];

View File

@ -16,40 +16,3 @@ frappe.ui.form.on('Stock Settings', {
}
});
frappe.tour['Stock Settings'] = [
{
fieldname: "item_naming_by",
title: __("Item Naming By"),
description: __("By default, the Item Name is set as per the Item Code entered. If you want Items to be named by a") + " " +
"<a href='https://docs.erpnext.com/docs/user/manual/en/setting-up/settings/naming-series' target='_blank'>Naming Series</a>" + " " +
__("choose the 'Naming Series' option."),
},
{
fieldname: "default_warehouse",
title: __("Default Warehouse"),
description: __("Set a Default Warehouse for Inventory Transactions. This will be fetched into the Default Warehouse in the Item master.")
},
{
fieldname: "valuation_method",
title: __("Valuation Method"),
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.")
},
{
fieldname: "show_barcode_field",
title: __("Show Barcode Field"),
description: __("Show 'Scan Barcode' field above every child table to insert Items with ease.")
},
{
fieldname: "action_if_quality_inspection_is_not_submitted",
title: __("Action if Quality Inspection Is Not Submitted"),
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.")
},
{
fieldname: "automatically_set_serial_nos_based_on_fifo",
title: __("Automatically Set Serial Nos based on FIFO"),
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.")
}
];

View File

@ -87,21 +87,3 @@ function convert_to_group_or_ledger(frm){
})
}
frappe.tour['Warehouse'] = [
{
fieldname: "warehouse_name",
title: __("Warehouse Name"),
description: __("Select name for the warehouse. This should reflect its location or purpose.")
},
{
fieldname: "warehouse_type",
title: __("Warehouse Type"),
description: __("Select a warehouse type to categorize the warehouse into a sub-group.")
},
{
fieldname: "account",
title: __("Account"),
description: __("Select an account to set a default account for all transactions with this warehouse.")
},
];

View File

@ -1,54 +0,0 @@
{
"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"
}

View File

@ -1,13 +1,13 @@
{
"creation": "2021-08-20 16:02:59.314742",
"creation": "2021-08-24 14:44:22.292652",
"docstatus": 0,
"doctype": "Form Tour",
"idx": 0,
"is_standard": 1,
"modified": "2021-08-20 16:05:40.593997",
"modified": "2021-08-24 14:50:48.017420",
"modified_by": "Administrator",
"module": "Stock",
"name": "Create a Stock Entry",
"name": "Stock Entry",
"owner": "Administrator",
"reference_doctype": "Stock Entry",
"save_on_complete": 1,
@ -52,5 +52,5 @@
"title": "Items"
}
],
"title": "Create a Stock Entry"
"title": "Stock Entry"
}

View File

@ -1,13 +1,13 @@
{
"creation": "2021-08-20 16:08:39.298267",
"creation": "2021-08-24 14:44:46.770952",
"docstatus": 0,
"doctype": "Form Tour",
"idx": 0,
"is_standard": 1,
"modified": "2021-08-20 16:08:39.298267",
"modified": "2021-08-24 14:50:41.512219",
"modified_by": "Administrator",
"module": "Stock",
"name": "Stock Opening Balance",
"name": "Stock Reconciliation",
"owner": "Administrator",
"reference_doctype": "Stock Reconciliation",
"save_on_complete": 1,
@ -51,5 +51,5 @@
"title": "Items"
}
],
"title": "Stock Opening Balance"
"title": "Stock Reconciliation"
}

View File

@ -1,13 +1,13 @@
{
"creation": "2021-08-20 15:42:47.059290",
"creation": "2021-08-24 14:43:44.465237",
"docstatus": 0,
"doctype": "Form Tour",
"idx": 0,
"is_standard": 1,
"modified": "2021-08-20 15:54:58.440497",
"modified": "2021-08-24 14:50:31.988256",
"modified_by": "Administrator",
"module": "Stock",
"name": "Create Warehouse",
"name": "Warehouse",
"owner": "Administrator",
"reference_doctype": "Warehouse",
"save_on_complete": 1,
@ -50,5 +50,5 @@
"title": "Account"
}
],
"title": "Create Warehouse"
"title": "Warehouse"
}