[fixes] create module flow list
This commit is contained in:
parent
9df3d0fb8a
commit
2966d89e2a
@ -32,5 +32,6 @@
|
||||
"stock/dashboard/item_dashboard.html",
|
||||
"stock/dashboard/item_dashboard_list.html",
|
||||
"stock/dashboard/item_dashboard.js"
|
||||
"public/js/module_flow.js"
|
||||
]
|
||||
}
|
||||
|
28
erpnext/public/js/module_flow.js
Normal file
28
erpnext/public/js/module_flow.js
Normal file
@ -0,0 +1,28 @@
|
||||
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
// MIT License. See license.txt
|
||||
|
||||
// for module flow
|
||||
|
||||
|
||||
frappe.module_flow = {
|
||||
"Selling": {
|
||||
"Sales Order": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Journal Entry"],
|
||||
"Quotation": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Journal Entry"]
|
||||
},
|
||||
"Accounts": {
|
||||
"Sales Invoice": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Journal Entry"],
|
||||
"Purchase Invoice": ["Supplier Quotation", "Purchase Order", "Purchase Receipt",
|
||||
"Purchase Invoice", "Journal Entry"]
|
||||
},
|
||||
"Buying": {
|
||||
"Purchase Order": ["Supplier Quotation", "Purchase Order", "Purchase Receipt",
|
||||
"Purchase Invoice", "Journal Entry"],
|
||||
"Supplier Quotation": ["Supplier Quotation", "Purchase Order", "Purchase Receipt",
|
||||
"Purchase Invoice", "Journal Entry"]
|
||||
},
|
||||
"Stock": {
|
||||
"Delivery Note": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Journal Entry"],
|
||||
"Purchase Receipt": ["Supplier Quotation", "Purchase Order", "Purchase Receipt",
|
||||
"Purchase Invoice", "Journal Entry"]
|
||||
}
|
||||
}
|
@ -32,30 +32,6 @@ def boot_session(bootinfo):
|
||||
bootinfo.docs += frappe.db.sql("""select name, default_currency, cost_center,
|
||||
default_terms, default_letter_head, default_bank_account from `tabCompany`""",
|
||||
as_dict=1, update={"doctype":":Company"})
|
||||
|
||||
bootinfo.module_flow = {
|
||||
"Selling": {
|
||||
"Sales Order": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Journal Entry"],
|
||||
"Quotation": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Journal Entry"]
|
||||
},
|
||||
"Accounts": {
|
||||
"Sales Invoice": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Journal Entry"],
|
||||
"Purchase Invoice": ["Supplier Quotation", "Purchase Order", "Purchase Receipt",
|
||||
"Purchase Invoice", "Journal Entry"]
|
||||
},
|
||||
"Buying": {
|
||||
"Purchase Order": ["Supplier Quotation", "Purchase Order", "Purchase Receipt",
|
||||
"Purchase Invoice", "Journal Entry"],
|
||||
"Supplier Quotation": ["Supplier Quotation", "Purchase Order", "Purchase Receipt",
|
||||
"Purchase Invoice", "Journal Entry"]
|
||||
},
|
||||
"Stock": {
|
||||
"Delivery Note": ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice", "Journal Entry"],
|
||||
"Purchase Receipt": ["Supplier Quotation", "Purchase Order", "Purchase Receipt",
|
||||
"Purchase Invoice", "Journal Entry"]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def load_country_and_currency(bootinfo):
|
||||
country = frappe.db.get_default("country")
|
||||
|
Loading…
x
Reference in New Issue
Block a user