blob: 58458c64eb3a9a820d4acf2117453b1b2f271f88 [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 Mehta868bb262017-03-09 18:11:11 +053011 "Task": {"status": ("in", ("Open", "Overdue"))},
Rushabh Mehta856ee102015-07-17 15:03:18 +053012 "Project": {"status": "Open"},
Rushabh Mehta15a7f212016-04-14 17:30:40 +053013 "Item": {"total_projected_qty": ("<", 0)},
Rushabh Mehta905f8322015-03-02 13:01:39 +053014 "Lead": {"status": "Open"},
15 "Contact": {"status": "Open"},
Rushabh Mehtaf579cf92015-04-13 16:58:47 +053016 "Opportunity": {"status": "Open"},
17 "Quotation": {"docstatus": 0},
Rushabh Mehtad10ba852015-10-02 12:42:48 +053018 "Sales Order": {
patilsangrambf2b5112016-02-22 16:24:23 +053019 "status": ("not in", ("Completed", "Closed")),
Rushabh Mehtad10ba852015-10-02 12:42:48 +053020 "docstatus": ("<", 2)
21 },
Rushabh Mehta905f8322015-03-02 13:01:39 +053022 "Journal Entry": {"docstatus": 0},
Nabin Hait906552a2016-09-05 14:35:23 +053023 "Sales Invoice": {
Rushabh Mehta87037bd2017-01-30 12:29:54 +053024 "outstanding_amount": (">", 0),
25 "docstatus": ("<", 2)
Nabin Hait906552a2016-09-05 14:35:23 +053026 },
27 "Purchase Invoice": {
Rushabh Mehta87037bd2017-01-30 12:29:54 +053028 "outstanding_amount": (">", 0),
Nabin Hait906552a2016-09-05 14:35:23 +053029 "docstatus": ("<", 2)
30 },
Manas Solanki546ca312016-11-05 01:14:29 +053031 "Payment Entry": {"docstatus": 0},
Rushabh Mehta905f8322015-03-02 13:01:39 +053032 "Leave Application": {"status": "Open"},
33 "Expense Claim": {"approval_status": "Draft"},
34 "Job Applicant": {"status": "Open"},
Nabin Hait906552a2016-09-05 14:35:23 +053035 "Delivery Note": {
36 "status": ("not in", ("Completed", "Closed")),
37 "docstatus": ("<", 2)
38 },
Rushabh Mehta905f8322015-03-02 13:01:39 +053039 "Stock Entry": {"docstatus": 0},
Rushabh Mehta44038532016-02-27 16:24:34 +053040 "Material Request": {
Anand Doshi44f777e2016-03-07 19:35:34 +053041 "docstatus": ("<", 2),
Rushabh Mehta44038532016-02-27 16:24:34 +053042 "status": ("not in", ("Stopped",)),
43 "per_ordered": ("<", 100)
44 },
Rushabh Mehta5d0e8de2016-04-11 17:34:25 +053045 "Request for Quotation": { "docstatus": 0 },
46 "Supplier Quotation": {"docstatus": 0},
Rushabh Mehtad10ba852015-10-02 12:42:48 +053047 "Purchase Order": {
patilsangrambf2b5112016-02-22 16:24:23 +053048 "status": ("not in", ("Completed", "Closed")),
Rushabh Mehtad10ba852015-10-02 12:42:48 +053049 "docstatus": ("<", 2)
50 },
Nabin Hait906552a2016-09-05 14:35:23 +053051 "Purchase Receipt": {
52 "status": ("not in", ("Completed", "Closed")),
53 "docstatus": ("<", 2)
54 },
Rushabh Mehta15a7f212016-04-14 17:30:40 +053055 "Production Order": { "status": ("in", ("Draft", "Not Started", "In Process")) },
Rushabh Mehta905f8322015-03-02 13:01:39 +053056 "BOM": {"docstatus": 0},
Rohit Waghchauree94d18b2016-07-06 20:12:58 +053057 "Timesheet": {"status": "Draft"}
Rushabh Mehta30430792013-12-13 15:33:40 +053058 }
Rushabh Mehtae9138832015-02-25 12:04:49 +053059 }