fd345f8e90
* [WIP]Hub * [listing] Show items, users and item_groups * Show filters * [start] cart, api for rfq and opp * rfq working * [wip] keys * wip quotes * [hub] register/unregister * [hub] rename password to access_token, remove passed company field * [hub] publishing cases, api call wrapper * [hub] add and remove fields working * [hub] fix flags, update on client save working * [hub] new hub page, client item CUD at hub working * listing, standard rate, local site hack * item listing, item page, search, back to home * [hub] implement hub company * [hub] company filter * [hub] basic rfq-ing, item page cleanup * categories wip * [hub] use get_doc_before_save() * [hub] send opportunity message to hub, api to make locally * [hub] enqueueing in hub api request wrapper * cleanup * [hub] refactor shopping cart's product.py to reuse * sync dynamic item fields daily * Scheduler heartbeat check * [wip] hub categories * [hub] wip enqueued callbacks * [hub] outgoing messages, fixing callback loop * [hub] bug: callback save after primary save * [hub] pricing, stock, currency * [hub] replace send_hub_request with make_and_enqueue * add hub.less, refactor code * Remove template html files, add styling for hub item cards * fix paging * add breadcrumb * Add sidebar * [hub] add company page, change country * [hub] order_by filters * [hub] make hub category a tree * [hub] enqueue batched item enqueueing * [hub] requested products page * [minor] * update hub url * [fix] url * [fix] more reform * fix recursion * [hub] data migration plans as jsons * Hub register, create data connector, sync with run * [add] user registration by session user * Removed hub_message * Remove sync code from hub_settings * Remove hub methods from item.py * Update Hub Sync plan * Hub unregister * Update Hub connector on reregister * Dont delete Hub Connector on unregister * Enable hub on success response * Add new hub whitelisted methods * [hub] list working * Hub register from hub page * [hub] Add hub logo in desk icon, link to page * [hub] hide page head on empty state * [hub] make rfq * [hub] push opportunity doc, poll for opportunity docs * add fields to item mapping * update hub mappings * Make RFQ * [hub] item, home routing * Make rfq and send opportunity refactor * [hub][fix] remote lead data * images passed as base64 * set default company on register * Revert "images passed as base64" This reverts commit 0b033a5fb7072b2d39a1b87a47dc41e7af707bb4. * Add sync to hub page * Prompt for publish items to hub * add post process to hub document to lead * Rename Hub document to Hub message, create opportunity in post process
288 lines
6.0 KiB
Python
288 lines
6.0 KiB
Python
from __future__ import unicode_literals
|
|
from frappe import _
|
|
|
|
def get_data():
|
|
return [
|
|
{
|
|
"module_name": "Item",
|
|
"_doctype": "Item",
|
|
"color": "#f39c12",
|
|
"icon": "octicon octicon-package",
|
|
"type": "link",
|
|
"link": "List/Item"
|
|
},
|
|
{
|
|
"module_name": "Customer",
|
|
"_doctype": "Customer",
|
|
"color": "#1abc9c",
|
|
"icon": "octicon octicon-tag",
|
|
"type": "link",
|
|
"link": "List/Customer"
|
|
},
|
|
{
|
|
"module_name": "Supplier",
|
|
"_doctype": "Supplier",
|
|
"color": "#c0392b",
|
|
"icon": "octicon octicon-briefcase",
|
|
"type": "link",
|
|
"link": "List/Supplier"
|
|
},
|
|
{
|
|
"_doctype": "Employee",
|
|
"module_name": "Employee",
|
|
"color": "#2ecc71",
|
|
"icon": "octicon octicon-organization",
|
|
"type": "link",
|
|
"link": "List/Employee"
|
|
},
|
|
{
|
|
"module_name": "Project",
|
|
"_doctype": "Project",
|
|
"color": "#8e44ad",
|
|
"icon": "octicon octicon-rocket",
|
|
"type": "link",
|
|
"link": "List/Project"
|
|
},
|
|
{
|
|
"module_name": "Issue",
|
|
"color": "#2c3e50",
|
|
"icon": "octicon octicon-issue-opened",
|
|
"_doctype": "Issue",
|
|
"type": "link",
|
|
"link": "List/Issue"
|
|
},
|
|
{
|
|
"module_name": "Lead",
|
|
"icon": "octicon octicon-broadcast",
|
|
"type": "module",
|
|
"_doctype": "Lead",
|
|
"type": "link",
|
|
"link": "List/Lead"
|
|
},
|
|
{
|
|
"module_name": "Profit and Loss Statement",
|
|
"_doctype": "Account",
|
|
"color": "#3498db",
|
|
"icon": "octicon octicon-repo",
|
|
"type": "link",
|
|
"link": "query-report/Profit and Loss Statement"
|
|
},
|
|
|
|
# old
|
|
{
|
|
"module_name": "Accounts",
|
|
"color": "#3498db",
|
|
"icon": "octicon octicon-repo",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Stock",
|
|
"color": "#f39c12",
|
|
"icon": "fa fa-truck",
|
|
"icon": "octicon octicon-package",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "CRM",
|
|
"color": "#EF4DB6",
|
|
"icon": "octicon octicon-broadcast",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Selling",
|
|
"color": "#1abc9c",
|
|
"icon": "fa fa-tag",
|
|
"icon": "octicon octicon-tag",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Buying",
|
|
"color": "#c0392b",
|
|
"icon": "fa fa-shopping-cart",
|
|
"icon": "octicon octicon-briefcase",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "HR",
|
|
"color": "#2ecc71",
|
|
"icon": "fa fa-group",
|
|
"icon": "octicon octicon-organization",
|
|
"label": _("Human Resources"),
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Manufacturing",
|
|
"color": "#7f8c8d",
|
|
"icon": "fa fa-cogs",
|
|
"icon": "octicon octicon-tools",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "POS",
|
|
"color": "#589494",
|
|
"icon": "octicon octicon-credit-card",
|
|
"type": "page",
|
|
"link": "pos",
|
|
"label": _("POS")
|
|
},
|
|
{
|
|
"module_name": "Projects",
|
|
"color": "#8e44ad",
|
|
"icon": "fa fa-puzzle-piece",
|
|
"icon": "octicon octicon-rocket",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Support",
|
|
"color": "#2c3e50",
|
|
"icon": "fa fa-phone",
|
|
"icon": "octicon octicon-issue-opened",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Learn",
|
|
"color": "#FF888B",
|
|
"icon": "octicon octicon-device-camera-video",
|
|
"type": "module",
|
|
"is_help": True,
|
|
"label": _("Learn"),
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Maintenance",
|
|
"color": "#FF888B",
|
|
"icon": "octicon octicon-tools",
|
|
"type": "module",
|
|
"label": _("Maintenance")
|
|
},
|
|
{
|
|
"module_name": "Student",
|
|
"color": "#c0392b",
|
|
"icon": "octicon octicon-person",
|
|
"label": _("Student"),
|
|
"link": "List/Student",
|
|
"_doctype": "Student",
|
|
"type": "list"
|
|
},
|
|
{
|
|
"module_name": "Student Group",
|
|
"color": "#d59919",
|
|
"icon": "octicon octicon-organization",
|
|
"label": _("Student Group"),
|
|
"link": "List/Student Group",
|
|
"_doctype": "Student Group",
|
|
"type": "list"
|
|
},
|
|
{
|
|
"module_name": "Course Schedule",
|
|
"color": "#fd784f",
|
|
"icon": "octicon octicon-calendar",
|
|
"label": _("Course Schedule"),
|
|
"link": "Calendar/Course Schedule",
|
|
"_doctype": "Course Schedule",
|
|
"type": "list"
|
|
},
|
|
{
|
|
"module_name": "Student Attendance",
|
|
"color": "#3aacba",
|
|
"icon": "octicon octicon-checklist",
|
|
"label": _("Student Attendance"),
|
|
"link": "List/Student Attendance",
|
|
"_doctype": "Student Attendance",
|
|
"type": "list"
|
|
},
|
|
{
|
|
"module_name": "Course",
|
|
"color": "#8e44ad",
|
|
"icon": "octicon octicon-book",
|
|
"label": _("Course"),
|
|
"link": "List/Course",
|
|
"_doctype": "Course",
|
|
"type": "list"
|
|
},
|
|
{
|
|
"module_name": "Program",
|
|
"color": "#9b59b6",
|
|
"icon": "octicon octicon-repo",
|
|
"label": _("Program"),
|
|
"link": "List/Program",
|
|
"_doctype": "Program",
|
|
"type": "list"
|
|
},
|
|
{
|
|
"module_name": "Student Applicant",
|
|
"color": "#4d927f",
|
|
"icon": "octicon octicon-clippy",
|
|
"label": _("Student Applicant"),
|
|
"link": "List/Student Applicant",
|
|
"_doctype": "Student Applicant",
|
|
"type": "list"
|
|
},
|
|
{
|
|
"module_name": "Fees",
|
|
"color": "#83C21E",
|
|
"icon": "fa fa-money",
|
|
"label": _("Fees"),
|
|
"link": "List/Fees",
|
|
"_doctype": "Fees",
|
|
"type": "list"
|
|
},
|
|
{
|
|
"module_name": "Instructor",
|
|
"color": "#a99e4c",
|
|
"icon": "octicon octicon-broadcast",
|
|
"label": _("Instructor"),
|
|
"link": "List/Instructor",
|
|
"_doctype": "Instructor",
|
|
"type": "list"
|
|
},
|
|
{
|
|
"module_name": "Room",
|
|
"color": "#f22683",
|
|
"icon": "fa fa-map-marker",
|
|
"label": _("Room"),
|
|
"link": "List/Room",
|
|
"_doctype": "Room",
|
|
"type": "list"
|
|
},
|
|
{
|
|
"module_name": "Schools",
|
|
"color": "#DE2B37",
|
|
"icon": "octicon octicon-mortar-board",
|
|
"type": "module",
|
|
"label": _("Schools")
|
|
},
|
|
{
|
|
"module_name": "Healthcare",
|
|
"color": "#FF888B",
|
|
"icon": "octicon octicon-plus",
|
|
"type": "module",
|
|
"label": _("Healthcare"),
|
|
},
|
|
{
|
|
"module_name": "Hub",
|
|
"color": "#009248",
|
|
"icon": "/assets/erpnext/images/hub_logo.svg",
|
|
"type": "page",
|
|
"link": "hub",
|
|
"label": _("Hub")
|
|
},
|
|
{
|
|
"module_name": "Data Import Tool",
|
|
"color": "#7f8c8d",
|
|
"icon": "octicon octicon-circuit-board",
|
|
"type": "page",
|
|
"link": "data-import-tool",
|
|
"label": _("Data Import Tool")
|
|
},
|
|
]
|