fix: added ref doctype and slide type in all slides

This commit is contained in:
Rucha Mahabal 2019-11-25 17:02:48 +05:30
parent 1755e1b0ff
commit 75b8b1d967
8 changed files with 17 additions and 13 deletions

View file

@ -72,7 +72,7 @@ def get_help_links(slide_doc):
return links
def get_submit_method(slide_doc):
if slide_doc.slide_type == 'Action':
if slide_doc.slide_type != 'Information':
return frappe.scrub(slide_doc.app) + '.utilities.onboarding_utils.' + slide_doc.submit_method
return None

View file

@ -3,7 +3,7 @@
"docstatus": 0,
"doctype": "Setup Wizard Settings",
"idx": "0",
"modified": "2019-11-25 12:33:08.139851",
"modified": "2019-11-25 16:45:59.632160",
"modified_by": "Administrator",
"name": "Setup Wizard Settings",
"owner": "Administrator",

View file

@ -27,10 +27,11 @@
"idx": 0,
"image_src": "/assets/erpnext/images/illustrations/customer.png",
"max_count": 3,
"modified": "2019-11-25 12:18:42.676764",
"modified": "2019-11-25 16:45:27.813979",
"modified_by": "Administrator",
"name": "Add A Few Customers",
"owner": "Administrator",
"ref_doctype": "Customer",
"slide_desc": "",
"slide_fields": [
{
@ -61,6 +62,6 @@
}
],
"slide_title": "Add A Few Customers",
"slide_type": "Action",
"slide_type": "Create",
"submit_method": "create_customers"
}

View file

@ -22,10 +22,11 @@
"idx": 0,
"image_src": "/assets/erpnext/images/illustrations/product.png",
"max_count": 3,
"modified": "2019-11-22 13:16:32.222715",
"modified": "2019-11-25 16:45:04.478402",
"modified_by": "Administrator",
"name": "Add A Few Products You Buy Or Sell",
"owner": "Administrator",
"ref_doctype": "Item",
"slide_desc": "",
"slide_fields": [
{
@ -73,6 +74,6 @@
}
],
"slide_title": "Add A Few Products You Buy Or Sell",
"slide_type": "Action",
"slide_type": "Create",
"submit_method": "create_items"
}

View file

@ -27,10 +27,11 @@
"idx": 0,
"image_src": "/assets/erpnext/images/illustrations/supplier.png",
"max_count": 3,
"modified": "2019-11-25 12:32:15.607842",
"modified": "2019-11-25 16:45:46.389579",
"modified_by": "Administrator",
"name": "Add A Few Suppliers",
"owner": "Administrator",
"ref_doctype": "Supplier",
"slide_desc": "",
"slide_fields": [
{
@ -61,6 +62,6 @@
}
],
"slide_title": "Add A Few Suppliers",
"slide_type": "Action",
"slide_type": "Create",
"submit_method": "create_suppliers"
}

View file

@ -27,10 +27,11 @@
"idx": 0,
"image_src": "/assets/erpnext/images/illustrations/letterhead.png",
"max_count": 0,
"modified": "2019-11-25 12:32:56.679708",
"modified": "2019-11-25 16:44:48.923555",
"modified_by": "Administrator",
"name": "Company Letter Head",
"owner": "Administrator",
"ref_doctype": "Letter Head",
"slide_desc": "Attach Letterhead: (Keep it web friendly as 1024px by 128px)",
"slide_fields": [
{
@ -45,6 +46,6 @@
}
],
"slide_title": "Company Letter Head",
"slide_type": "Action",
"slide_type": "Create",
"submit_method": "create_letterhead"
}

View file

@ -25,12 +25,12 @@
"idx": 0,
"image_src": "/assets/erpnext/images/illustrations/onboard.png",
"max_count": 0,
"modified": "2019-11-25 09:58:53.284461",
"modified": "2019-11-25 15:27:46.314226",
"modified_by": "Administrator",
"name": "Welcome to ERPNext!",
"owner": "Administrator",
"slide_desc": "Setting up an ERP can be overwhelming. But don't worry, we have got your back!<br>\nLet's setup your company.\nThis wizard will help you onboard to ERPNext in a short time!",
"slide_fields": [],
"slide_title": "Welcome to ERPNext!",
"slide_type": "Info"
"slide_type": "Information"
}

View file

@ -85,7 +85,7 @@ frappe.setup.OnboardingSlide = class OnboardingSlide extends frappe.ui.Slide {
}
setup_action_button() {
(this.slide_type == 'Action') ?
(this.slide_type !== 'Information') ?
this.$action_button.addClass('primary') : this.$action_button.removeClass('primary');
}
};