From b5eb16faeb640db11871331d2dc3a532da2aee21 Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Thu, 31 Jan 2019 14:50:22 +0530 Subject: [PATCH] feat(config): add some onboarding cues --- erpnext/config/buying.py | 88 +++++++++++++++++++++------------------ erpnext/config/desktop.py | 2 +- 2 files changed, 49 insertions(+), 41 deletions(-) diff --git a/erpnext/config/buying.py b/erpnext/config/buying.py index e99b1d88aa..13a1c97b20 100644 --- a/erpnext/config/buying.py +++ b/erpnext/config/buying.py @@ -3,6 +3,49 @@ from frappe import _ def get_data(): return [ + { + "label": _("Items and Pricing"), + "items": [ + { + "type": "doctype", + "name": "Item", + "onboard": 1, + "description": _("All Products or Services."), + }, + { + "type": "doctype", + "name": "Price List", + "onboard": 1, + "description": _("Price List master.") + }, + { + "type": "doctype", + "name": "Item Price", + "description": _("Multiple Item prices."), + "onboard": 1, + "route": "Report/Item Price" + }, + { + "type": "doctype", + "name": "Product Bundle", + "description": _("Bundle items at time of sale."), + }, + { + "type": "doctype", + "name": "Item Group", + "icon": "fa fa-sitemap", + "label": _("Item Group"), + "link": "Tree/Item Group", + "description": _("Tree of Item Groups."), + }, + { + "type": "doctype", + "name": "Pricing Rule", + "description": _("Rules for applying pricing and discount.") + }, + + ] + }, { "label": _("Purchasing"), "icon": "fa fa-star", @@ -10,21 +53,25 @@ def get_data(): { "type": "doctype", "name": "Material Request", + "dependencies": ["Item"], "description": _("Request for purchase."), }, { "type": "doctype", "name": "Request for Quotation", + "dependencies": ["Item", "Supplier"], "description": _("Request for quotation."), }, { "type": "doctype", "name": "Supplier Quotation", + "dependencies": ["Item", "Supplier"], "description": _("Quotations received from Suppliers."), }, { "type": "doctype", "name": "Purchase Order", + "dependencies": ["Item", "Supplier"], "description": _("Purchase Orders given to Suppliers."), }, ] @@ -35,6 +82,7 @@ def get_data(): { "type": "doctype", "name": "Supplier", + "onboard": 1, "description": _("Supplier database."), }, { @@ -77,46 +125,6 @@ def get_data(): }, ] }, - { - "label": _("Items and Pricing"), - "items": [ - { - "type": "doctype", - "name": "Item", - "description": _("All Products or Services."), - }, - { - "type": "doctype", - "name": "Product Bundle", - "description": _("Bundle items at time of sale."), - }, - { - "type": "doctype", - "name": "Price List", - "description": _("Price List master.") - }, - { - "type": "doctype", - "name": "Item Group", - "icon": "fa fa-sitemap", - "label": _("Item Group"), - "link": "Tree/Item Group", - "description": _("Tree of Item Groups."), - }, - { - "type": "doctype", - "name": "Item Price", - "description": _("Multiple Item prices."), - "route": "Report/Item Price" - }, - { - "type": "doctype", - "name": "Pricing Rule", - "description": _("Rules for applying pricing and discount.") - }, - - ] - }, { "label": _("Analytics"), "icon": "fa fa-table", diff --git a/erpnext/config/desktop.py b/erpnext/config/desktop.py index 90d0ca0042..18132c63ba 100644 --- a/erpnext/config/desktop.py +++ b/erpnext/config/desktop.py @@ -547,7 +547,7 @@ def get_data(): "icon": "octicon octicon-credit-card", "type": "module", "hidden": 1, - "description": "Streamline your production with BOMS, Work Orders and Timesheets." + "description": "Point of Sale, Cashier Closing and Loyalty Programs." }, { "module_name": "Education",