brotherton-erpnext/erpnext/startup/notifications.py

49 lines
1.6 KiB
Python
Raw Normal View History

# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
def get_notification_config():
return { "for_doctype":
{
2015-03-02 07:31:39 +00:00
"Issue": {"status": "Open"},
"Warranty Claim": {"status": "Open"},
"Task": {"status": "Overdue"},
"Project": {"status": "Open"},
"Item": {"total_projected_qty": ("<", 0)},
"Customer": {"status": "Open"},
"Supplier": {"status": "Open"},
2015-03-02 07:31:39 +00:00
"Lead": {"status": "Open"},
"Contact": {"status": "Open"},
2015-04-13 11:28:47 +00:00
"Opportunity": {"status": "Open"},
"Quotation": {"docstatus": 0},
2015-10-02 07:12:48 +00:00
"Sales Order": {
2016-02-22 10:54:23 +00:00
"status": ("not in", ("Completed", "Closed")),
2015-10-02 07:12:48 +00:00
"docstatus": ("<", 2)
},
2015-03-02 07:31:39 +00:00
"Journal Entry": {"docstatus": 0},
"Sales Invoice": { "outstanding_amount": (">", 0), "docstatus": ("<", 2) },
"Purchase Invoice": {"docstatus": 0},
"Leave Application": {"status": "Open"},
"Expense Claim": {"approval_status": "Draft"},
"Job Applicant": {"status": "Open"},
"Delivery Note": {"docstatus": 0},
"Stock Entry": {"docstatus": 0},
"Material Request": {
"docstatus": ("<", 2),
"status": ("not in", ("Stopped",)),
"per_ordered": ("<", 100)
},
2016-04-11 12:04:25 +00:00
"Request for Quotation": { "docstatus": 0 },
"Supplier Quotation": {"docstatus": 0},
2015-10-02 07:12:48 +00:00
"Purchase Order": {
2016-02-22 10:54:23 +00:00
"status": ("not in", ("Completed", "Closed")),
2015-10-02 07:12:48 +00:00
"docstatus": ("<", 2)
},
2016-04-11 12:04:25 +00:00
"Purchase Receipt": {"docstatus": 0},
"Production Order": { "status": ("in", ("Draft", "Not Started", "In Process")) },
2015-03-02 07:31:39 +00:00
"BOM": {"docstatus": 0},
2016-07-06 14:42:58 +00:00
"Timesheet": {"status": "Draft"}
}
}