2015-03-03 09:25:30 +00:00
|
|
|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
2013-12-13 10:03:40 +00:00
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
2014-02-14 10:17:51 +00:00
|
|
|
import frappe
|
2013-12-13 10:03:40 +00:00
|
|
|
|
|
|
|
def get_notification_config():
|
2015-02-25 06:34:49 +00:00
|
|
|
return { "for_doctype":
|
2013-12-13 10:03:40 +00:00
|
|
|
{
|
2015-03-02 07:31:39 +00:00
|
|
|
"Issue": {"status": "Open"},
|
|
|
|
"Warranty Claim": {"status": "Open"},
|
|
|
|
"Task": {"status": "Open"},
|
|
|
|
"Lead": {"status": "Open"},
|
|
|
|
"Contact": {"status": "Open"},
|
|
|
|
"Opportunity": {"docstatus": 0},
|
|
|
|
"Quotation": {"docstatus": 0},
|
|
|
|
"Sales Order": { "per_delivered": ("<", 100), "status": ("!=", "Stopped"), "docstatus": ("<", 2) },
|
|
|
|
"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"},
|
|
|
|
"Purchase Receipt": {"docstatus": 0},
|
|
|
|
"Delivery Note": {"docstatus": 0},
|
|
|
|
"Stock Entry": {"docstatus": 0},
|
|
|
|
"Material Request": {"docstatus": 0},
|
|
|
|
"Purchase Order": { "per_received": ("<", 100), "status": ("!=", "Stopped"), "docstatus": ("<", 2) },
|
2015-02-25 06:34:49 +00:00
|
|
|
"Production Order": { "status": "In Process" },
|
2015-03-02 07:31:39 +00:00
|
|
|
"BOM": {"docstatus": 0},
|
|
|
|
"Timesheet": {"docstatus": 0},
|
|
|
|
"Time Log": {"status": "Draft"},
|
|
|
|
"Time Log Batch": {"status": "Draft"},
|
2013-12-13 10:03:40 +00:00
|
|
|
}
|
2015-02-25 06:34:49 +00:00
|
|
|
}
|