feat(modules): add onboard keys, remove hidden

This commit is contained in:
Prateeksha Singh 2019-03-04 14:00:02 +05:30
parent 8f0660ab31
commit 8aa4594b1e
8 changed files with 43 additions and 31 deletions

View File

@ -9,14 +9,17 @@ def get_data():
{ {
"type": "doctype", "type": "doctype",
"name": "Crop", "name": "Crop",
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",
"name": "Crop Cycle", "name": "Crop Cycle",
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",
"name": "Location" "name": "Location",
"onboard": 1,
} }
] ]
}, },
@ -26,10 +29,12 @@ def get_data():
{ {
"type": "doctype", "type": "doctype",
"name": "Disease", "name": "Disease",
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",
"name": "Fertilizer", "name": "Fertilizer",
"onboard": 1,
} }
] ]
}, },

View File

@ -84,7 +84,7 @@ def get_data():
{ {
"type": "doctype", "type": "doctype",
"name": "Buying Settings", "name": "Buying Settings",
"onboard": 1, "settings": 1,
"description": _("Default settings for buying transactions.") "description": _("Default settings for buying transactions.")
}, },
{ {

View File

@ -13,8 +13,10 @@ def get_data():
"color": "#1abc9c", "color": "#1abc9c",
"icon": "fa fa-check-square-o", "icon": "fa fa-check-square-o",
"type": "module", "type": "module",
"hidden": 1, "disable_after_onboard": 1,
"description": "Dive into the basics for your organisation's needs." "shortcuts": ["Import Data", "Letter Head", "Email Account", "Item", "Customer"],
"description": "Dive into the basics for your organisation's needs.",
"onboard_present": 1
}, },
{ {
"module_name": "Accounting", "module_name": "Accounting",
@ -23,7 +25,7 @@ def get_data():
"color": "#3498db", "color": "#3498db",
"icon": "octicon octicon-repo", "icon": "octicon octicon-repo",
"type": "module", "type": "module",
"hidden": 1, "shortcuts": ["Item", "Customer", "Supplier", "General Ledger", "Sales Invoice"],
"description": "Accounts, billing, payments, cost center and budgeting." "description": "Accounts, billing, payments, cost center and budgeting."
}, },
{ {
@ -33,7 +35,7 @@ def get_data():
"color": "#1abc9c", "color": "#1abc9c",
"icon": "octicon octicon-tag", "icon": "octicon octicon-tag",
"type": "module", "type": "module",
"hidden": 1, "shortcuts": ["Quotation", "Sales Order", "Sales Analytics", "Customer"],
"description": "Sales orders, quotations, customers and items." "description": "Sales orders, quotations, customers and items."
}, },
{ {
@ -43,7 +45,7 @@ def get_data():
"color": "#c0392b", "color": "#c0392b",
"icon": "octicon octicon-briefcase", "icon": "octicon octicon-briefcase",
"type": "module", "type": "module",
"hidden": 1, "shortcuts": ["Purchase Order", "Items and Pricing", "Settings", "Supplier"],
"description": "Purchasing, suppliers, material requests, and items." "description": "Purchasing, suppliers, material requests, and items."
}, },
{ {
@ -53,7 +55,7 @@ def get_data():
"color": "#f39c12", "color": "#f39c12",
"icon": "octicon octicon-package", "icon": "octicon octicon-package",
"type": "module", "type": "module",
"hidden": 1, "shortcuts": ["Transactions", "Stock Reports", "Settings"],
"description": "Stock transactions, reports, serial numbers and batches." "description": "Stock transactions, reports, serial numbers and batches."
}, },
{ {
@ -62,8 +64,8 @@ def get_data():
"label": _("Assets"), "label": _("Assets"),
"color": "#4286f4", "color": "#4286f4",
"icon": "octicon octicon-database", "icon": "octicon octicon-database",
"hidden": 1,
"type": "module", "type": "module",
"shortcuts": ["Assets", "Maintanence", "Reports"],
"description": "Asset movement, maintainance and tools." "description": "Asset movement, maintainance and tools."
}, },
{ {
@ -73,7 +75,7 @@ def get_data():
"color": "#8e44ad", "color": "#8e44ad",
"icon": "octicon octicon-rocket", "icon": "octicon octicon-rocket",
"type": "module", "type": "module",
"hidden": 1, "shortcuts": ["Projects", "Time Tracking", "Reports"],
"description": "Updates, Timesheets and Activities." "description": "Updates, Timesheets and Activities."
}, },
{ {
@ -83,7 +85,7 @@ def get_data():
"color": "#EF4DB6", "color": "#EF4DB6",
"icon": "octicon octicon-broadcast", "icon": "octicon octicon-broadcast",
"type": "module", "type": "module",
"hidden": 1, "shortcuts": ["Sales Pipeline", "Reports", "Settings"],
"description": "Sales pipeline, leads, opportunities and customers." "description": "Sales pipeline, leads, opportunities and customers."
}, },
{ {
@ -93,7 +95,7 @@ def get_data():
"color": "#1abc9c", "color": "#1abc9c",
"icon": "fa fa-check-square-o", "icon": "fa fa-check-square-o",
"type": "module", "type": "module",
"hidden": 1, "shortcuts": ["Issues", "Warranty", "Reports"],
"description": "User interactions, support issues and knowledge base." "description": "User interactions, support issues and knowledge base."
}, },
{ {
@ -103,7 +105,7 @@ def get_data():
"color": "#2ecc71", "color": "#2ecc71",
"icon": "octicon octicon-organization", "icon": "octicon octicon-organization",
"type": "module", "type": "module",
"hidden": 1, "shortcuts": ["Employee and Attendance", "Payroll", "Settings"],
"description": "Employees, attendance, payroll, leaves and shifts." "description": "Employees, attendance, payroll, leaves and shifts."
}, },
{ {
@ -113,7 +115,7 @@ def get_data():
"color": "#1abc9c", "color": "#1abc9c",
"icon": "fa fa-check-square-o", "icon": "fa fa-check-square-o",
"type": "module", "type": "module",
"hidden": 1, "shortcuts": ["Goal and Procedure", "Review and Action"],
"description": "Quality goals, procedures, reviews and action." "description": "Quality goals, procedures, reviews and action."
}, },
@ -126,7 +128,6 @@ def get_data():
"color": "#7f8c8d", "color": "#7f8c8d",
"icon": "octicon octicon-tools", "icon": "octicon octicon-tools",
"type": "module", "type": "module",
"hidden": 1,
"description": "BOMS, work orders, operations, and timesheets." "description": "BOMS, work orders, operations, and timesheets."
}, },
{ {
@ -136,7 +137,6 @@ def get_data():
"color": "#7f8c8d", "color": "#7f8c8d",
"icon": "octicon octicon-credit-card", "icon": "octicon octicon-credit-card",
"type": "module", "type": "module",
"hidden": 1,
"description": "Point of Sale and cashier closing." "description": "Point of Sale and cashier closing."
}, },
{ {
@ -146,7 +146,6 @@ def get_data():
"color": "#428B46", "color": "#428B46",
"icon": "octicon octicon-mortar-board", "icon": "octicon octicon-mortar-board",
"type": "module", "type": "module",
"hidden": 1,
"description": "Student admissions, fees, courses and scores." "description": "Student admissions, fees, courses and scores."
}, },
@ -157,7 +156,6 @@ def get_data():
"color": "#FF888B", "color": "#FF888B",
"icon": "fa fa-heartbeat", "icon": "fa fa-heartbeat",
"type": "module", "type": "module",
"hidden": 1,
"description": "Patient appointments, procedures and tests." "description": "Patient appointments, procedures and tests."
}, },
{ {
@ -167,7 +165,6 @@ def get_data():
"color": "#8BC34A", "color": "#8BC34A",
"icon": "octicon octicon-globe", "icon": "octicon octicon-globe",
"type": "module", "type": "module",
"hidden": 1,
"description": "Crop cycles, land areas, soil and plant analysis." "description": "Crop cycles, land areas, soil and plant analysis."
}, },
{ {
@ -177,7 +174,6 @@ def get_data():
"color": "#EA81E8", "color": "#EA81E8",
"icon": "fa fa-bed", "icon": "fa fa-bed",
"type": "module", "type": "module",
"hidden": 1,
"description": "Hotel rooms, pricing, reservation and amenities." "description": "Hotel rooms, pricing, reservation and amenities."
}, },
@ -188,7 +184,6 @@ def get_data():
"color": "#DE2B37", "color": "#DE2B37",
"icon": "octicon octicon-heart", "icon": "octicon octicon-heart",
"type": "module", "type": "module",
"hidden": 1,
"description": "Volunteers, memberships, grants and chapters." "description": "Volunteers, memberships, grants and chapters."
}, },
{ {
@ -200,17 +195,16 @@ def get_data():
"_doctype": "Restaurant", "_doctype": "Restaurant",
"type": "module", "type": "module",
"link": "List/Restaurant", "link": "List/Restaurant",
"hidden": 1,
"description": "Menu, Orders and Table Reservations." "description": "Menu, Orders and Table Reservations."
}, },
{ {
"module_name": "Learn", "module_name": "Help",
"category": "Administration", "category": "Administration",
"label": _("Learn"), "label": _("Learn"),
"color": "#FF888B", "color": "#FF888B",
"icon": "octicon octicon-device-camera-video", "icon": "octicon octicon-device-camera-video",
"type": "module",
"is_help": True, "is_help": True,
"description": "Explore Help Articles and Videos." "description": "Explore Help Articles and Videos."
}, },

View File

@ -8,7 +8,8 @@ def get_data():
"items": [ "items": [
{ {
"type": "doctype", "type": "doctype",
"name": "Student" "name": "Student",
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",
@ -181,7 +182,8 @@ def get_data():
"items": [ "items": [
{ {
"type": "doctype", "type": "doctype",
"name": "Course" "name": "Course",
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",
@ -189,11 +191,13 @@ def get_data():
}, },
{ {
"type": "doctype", "type": "doctype",
"name": "Instructor" "name": "Instructor",
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",
"name": "Room" "name": "Room",
"onboard": 1,
} }
] ]
}, },
@ -210,7 +214,8 @@ def get_data():
}, },
{ {
"type": "doctype", "type": "doctype",
"name": "Grading Scale" "name": "Grading Scale",
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",

View File

@ -76,11 +76,13 @@ def get_data():
"type": "doctype", "type": "doctype",
"name": "Patient", "name": "Patient",
"label": _("Patient"), "label": _("Patient"),
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",
"name": "Healthcare Practitioner", "name": "Healthcare Practitioner",
"label": _("Healthcare Practitioner"), "label": _("Healthcare Practitioner"),
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",
@ -96,6 +98,7 @@ def get_data():
"type": "doctype", "type": "doctype",
"name": "Medical Code", "name": "Medical Code",
"label": _("Medical Code"), "label": _("Medical Code"),
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",
@ -112,6 +115,7 @@ def get_data():
"type": "doctype", "type": "doctype",
"name": "Healthcare Settings", "name": "Healthcare Settings",
"label": _("Healthcare Settings"), "label": _("Healthcare Settings"),
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",

View File

@ -11,6 +11,7 @@ def get_data():
"type": "doctype", "type": "doctype",
"name": "Chapter", "name": "Chapter",
"description": _("Chapter information."), "description": _("Chapter information."),
"onboard": 1,
} }
] ]
}, },
@ -21,11 +22,13 @@ def get_data():
"type": "doctype", "type": "doctype",
"name": "Member", "name": "Member",
"description": _("Member information."), "description": _("Member information."),
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",
"name": "Membership", "name": "Membership",
"description": _("Memebership Details"), "description": _("Memebership Details"),
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",
@ -41,6 +44,7 @@ def get_data():
"type": "doctype", "type": "doctype",
"name": "Volunteer", "name": "Volunteer",
"description": _("Volunteer information."), "description": _("Volunteer information."),
"onboard": 1,
}, },
{ {
"type": "doctype", "type": "doctype",

View File

@ -119,7 +119,7 @@ def get_data():
"type": "doctype", "type": "doctype",
"name": "Selling Settings", "name": "Selling Settings",
"description": _("Default settings for selling transactions."), "description": _("Default settings for selling transactions."),
"onboard": 1, "settings": 1,
}, },
{ {
"type": "doctype", "type": "doctype",

View File

@ -14,7 +14,7 @@ def get_data():
"label": _("ERPNext Settings"), "label": _("ERPNext Settings"),
"description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."), "description": _("Set Default Values like Company, Currency, Current Fiscal Year, etc."),
"hide_count": True, "hide_count": True,
"onboard": 1, "settings": 1,
} }
] ]
}, },