chore(manufacturing): added dashboard for doctypes
This commit is contained in:
parent
2f67fb25a6
commit
830f2b642b
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'blanket_order',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['Purchase Order', 'Sales Order']
|
||||
}
|
||||
]
|
||||
}
|
27
erpnext/manufacturing/doctype/bom/bom_dashboard.py
Normal file
27
erpnext/manufacturing/doctype/bom/bom_dashboard.py
Normal file
@ -0,0 +1,27 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'bom_no',
|
||||
'non_standard_fieldnames': {
|
||||
'Item': 'default_bom',
|
||||
'Purchase Order': 'bom',
|
||||
'Purchase Receipt': 'bom',
|
||||
'Purchase Invoice': 'bom'
|
||||
},
|
||||
'transactions': [
|
||||
{
|
||||
'label': _('Stock'),
|
||||
'items': ['Item', 'Stock Entry', 'Quality Inspection']
|
||||
},
|
||||
{
|
||||
'label': _('Manufacture'),
|
||||
'items': ['BOM', 'Work Order', 'Job Card', 'Production Plan']
|
||||
},
|
||||
{
|
||||
'label': _('Purchase'),
|
||||
'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice']
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'operation',
|
||||
'transactions': [
|
||||
{
|
||||
'label': _('Manufacture'),
|
||||
'items': ['BOM', 'Work Order', 'Job Card', 'Timesheet']
|
||||
}
|
||||
]
|
||||
}
|
12
erpnext/manufacturing/doctype/routing/routing_dashboard.py
Normal file
12
erpnext/manufacturing/doctype/routing/routing_dashboard.py
Normal file
@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'routing',
|
||||
'transactions': [
|
||||
{
|
||||
'items': ['BOM']
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'workstation',
|
||||
'transactions': [
|
||||
{
|
||||
'label': _('Manufacture'),
|
||||
'items': ['BOM', 'Routing', 'Work Order', 'Job Card', 'Operation', 'Timesheet']
|
||||
}
|
||||
]
|
||||
}
|
@ -41,7 +41,7 @@ def get_data():
|
||||
},
|
||||
{
|
||||
'label': _('Manufacture'),
|
||||
'items': ['Work Order', 'Item Manufacturer']
|
||||
'items': ['Production Plan', 'Work Order', 'Item Manufacturer']
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user