blob: 700ced20873bbadac1cc228242805ff486f0ce1b [file] [log] [blame]
Anand Doshi885e0742015-03-03 14:55:30 +05301# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
Rushabh Mehta30430792013-12-13 15:33:40 +05302# License: GNU General Public License v3. See license.txt
3
4from __future__ import unicode_literals
Rushabh Mehta30430792013-12-13 15:33:40 +05305
6def get_notification_config():
Rushabh Mehtae9138832015-02-25 12:04:49 +05307 return { "for_doctype":
Rushabh Mehta30430792013-12-13 15:33:40 +05308 {
Rushabh Mehta905f8322015-03-02 13:01:39 +05309 "Issue": {"status": "Open"},
10 "Warranty Claim": {"status": "Open"},
Rushabh Mehta13ec41a2015-12-10 12:31:36 +053011 "Task": {"status": "Overdue"},
Rushabh Mehta856ee102015-07-17 15:03:18 +053012 "Project": {"status": "Open"},
Rushabh Mehta8cd1ab82016-04-08 17:26:53 +053013 "Customer": {"status": "Open"},
14 "Supplier": {"status": "Open"},
Rushabh Mehta905f8322015-03-02 13:01:39 +053015 "Lead": {"status": "Open"},
16 "Contact": {"status": "Open"},
Rushabh Mehtaf579cf92015-04-13 16:58:47 +053017 "Opportunity": {"status": "Open"},
18 "Quotation": {"docstatus": 0},
Rushabh Mehtad10ba852015-10-02 12:42:48 +053019 "Sales Order": {
patilsangrambf2b5112016-02-22 16:24:23 +053020 "status": ("not in", ("Completed", "Closed")),
Rushabh Mehtad10ba852015-10-02 12:42:48 +053021 "docstatus": ("<", 2)
22 },
Rushabh Mehta905f8322015-03-02 13:01:39 +053023 "Journal Entry": {"docstatus": 0},
24 "Sales Invoice": { "outstanding_amount": (">", 0), "docstatus": ("<", 2) },
25 "Purchase Invoice": {"docstatus": 0},
26 "Leave Application": {"status": "Open"},
27 "Expense Claim": {"approval_status": "Draft"},
28 "Job Applicant": {"status": "Open"},
Rushabh Mehta905f8322015-03-02 13:01:39 +053029 "Delivery Note": {"docstatus": 0},
30 "Stock Entry": {"docstatus": 0},
Rushabh Mehta44038532016-02-27 16:24:34 +053031 "Material Request": {
Anand Doshi44f777e2016-03-07 19:35:34 +053032 "docstatus": ("<", 2),
Rushabh Mehta44038532016-02-27 16:24:34 +053033 "status": ("not in", ("Stopped",)),
34 "per_ordered": ("<", 100)
35 },
Rushabh Mehta5d0e8de2016-04-11 17:34:25 +053036 "Request for Quotation": { "docstatus": 0 },
37 "Supplier Quotation": {"docstatus": 0},
Rushabh Mehtad10ba852015-10-02 12:42:48 +053038 "Purchase Order": {
patilsangrambf2b5112016-02-22 16:24:23 +053039 "status": ("not in", ("Completed", "Closed")),
Rushabh Mehtad10ba852015-10-02 12:42:48 +053040 "docstatus": ("<", 2)
41 },
Rushabh Mehta5d0e8de2016-04-11 17:34:25 +053042 "Purchase Receipt": {"docstatus": 0},
Rushabh Mehtae9138832015-02-25 12:04:49 +053043 "Production Order": { "status": "In Process" },
Rushabh Mehta905f8322015-03-02 13:01:39 +053044 "BOM": {"docstatus": 0},
45 "Timesheet": {"docstatus": 0},
46 "Time Log": {"status": "Draft"},
Anand Doshi1a2e6bf2015-08-14 16:52:55 +053047 "Time Log Batch": {"status": "Draft"}
Rushabh Mehta30430792013-12-13 15:33:40 +053048 }
Rushabh Mehtae9138832015-02-25 12:04:49 +053049 }