[dashboard] for quotation and sales order
diff --git a/erpnext/portal/doctype/homepage/homepage.py b/erpnext/portal/doctype/homepage/homepage.py
index a817230..20ce767 100644
--- a/erpnext/portal/doctype/homepage/homepage.py
+++ b/erpnext/portal/doctype/homepage/homepage.py
@@ -17,9 +17,10 @@
for d in frappe.get_all('Item', fields=['name', 'item_name', 'description', 'image'],
filters={'show_in_website': 1}, limit=3):
- # set missing routes (?)
doc = frappe.get_doc('Item', d.name)
- doc.save()
+ if not doc.route:
+ # set missing route
+ doc.save()
self.append('products', dict(item_code=d.name,
item_name=d.item_name, description=d.description, image=d.image))
diff --git a/erpnext/public/js/utils/document_flow.js b/erpnext/public/js/utils/document_flow.js
index 0bc0b44..c20a4b7 100644
--- a/erpnext/public/js/utils/document_flow.js
+++ b/erpnext/public/js/utils/document_flow.js
@@ -5,8 +5,8 @@
$.extend(frappe.document_flow, {
"Selling": {
- "Sales Order": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Payment Entry"],
- "Quotation": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Payment Entry"]
+ // "Sales Order": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Payment Entry"],
+ // "Quotation": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Payment Entry"]
},
"Accounts": {
"Sales Invoice": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Payment Entry"],
diff --git a/erpnext/selling/doctype/quotation/quotation_dashboard.py b/erpnext/selling/doctype/quotation/quotation_dashboard.py
new file mode 100644
index 0000000..80dc6aa
--- /dev/null
+++ b/erpnext/selling/doctype/quotation/quotation_dashboard.py
@@ -0,0 +1,11 @@
+from frappe import _
+
+data = {
+ 'fieldname': 'prevdoc_docname',
+ 'transactions': [
+ {
+ 'label': _('Related'),
+ 'items': ['Sales Order']
+ },
+ ]
+}
\ No newline at end of file
diff --git a/erpnext/selling/doctype/sales_order/sales_order_dashboard.py b/erpnext/selling/doctype/sales_order/sales_order_dashboard.py
new file mode 100644
index 0000000..feda39d
--- /dev/null
+++ b/erpnext/selling/doctype/sales_order/sales_order_dashboard.py
@@ -0,0 +1,33 @@
+from frappe import _
+
+data = {
+ 'fieldname': 'sales_order',
+ 'non_standard_fieldnames': {
+ 'Delivery Note': 'against_sales_order',
+ },
+ 'internal_links': {
+ 'Quotation': ['items', 'prevdoc_docname']
+ },
+ 'transactions': [
+ {
+ 'label': _('Fulfillment'),
+ 'items': ['Sales Invoice', 'Delivery Note']
+ },
+ {
+ 'label': _('Purchasing'),
+ 'items': ['Material Request', 'Purchase Order']
+ },
+ {
+ 'label': _('Projects'),
+ 'items': ['Project']
+ },
+ {
+ 'label': _('Manufacturing'),
+ 'items': ['Production Order']
+ },
+ {
+ 'label': _('Reference'),
+ 'items': ['Quotation']
+ },
+ ]
+}
\ No newline at end of file