[dashboard] for quotation and sales order
This commit is contained in:
parent
649e2538e5
commit
39077d4210
@ -17,9 +17,10 @@ class Homepage(Document):
|
|||||||
for d in frappe.get_all('Item', fields=['name', 'item_name', 'description', 'image'],
|
for d in frappe.get_all('Item', fields=['name', 'item_name', 'description', 'image'],
|
||||||
filters={'show_in_website': 1}, limit=3):
|
filters={'show_in_website': 1}, limit=3):
|
||||||
|
|
||||||
# set missing routes (?)
|
|
||||||
doc = frappe.get_doc('Item', d.name)
|
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,
|
self.append('products', dict(item_code=d.name,
|
||||||
item_name=d.item_name, description=d.description, image=d.image))
|
item_name=d.item_name, description=d.description, image=d.image))
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
$.extend(frappe.document_flow, {
|
$.extend(frappe.document_flow, {
|
||||||
"Selling": {
|
"Selling": {
|
||||||
"Sales Order": ["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"]
|
// "Quotation": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Payment Entry"]
|
||||||
},
|
},
|
||||||
"Accounts": {
|
"Accounts": {
|
||||||
"Sales Invoice": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Payment Entry"],
|
"Sales Invoice": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Payment Entry"],
|
||||||
|
11
erpnext/selling/doctype/quotation/quotation_dashboard.py
Normal file
11
erpnext/selling/doctype/quotation/quotation_dashboard.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from frappe import _
|
||||||
|
|
||||||
|
data = {
|
||||||
|
'fieldname': 'prevdoc_docname',
|
||||||
|
'transactions': [
|
||||||
|
{
|
||||||
|
'label': _('Related'),
|
||||||
|
'items': ['Sales Order']
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
33
erpnext/selling/doctype/sales_order/sales_order_dashboard.py
Normal file
33
erpnext/selling/doctype/sales_order/sales_order_dashboard.py
Normal file
@ -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']
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user