blob: a1b90f96a247014abb7f8eeb1b43b134d072f00b [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 Mehta15a7f212016-04-14 17:30:40 +053013 "Item": {"total_projected_qty": ("<", 0)},
Rushabh Mehta8cd1ab82016-04-08 17:26:53 +053014 "Customer": {"status": "Open"},
15 "Supplier": {"status": "Open"},
Rushabh Mehta905f8322015-03-02 13:01:39 +053016 "Lead": {"status": "Open"},
17 "Contact": {"status": "Open"},
Rushabh Mehtaf579cf92015-04-13 16:58:47 +053018 "Opportunity": {"status": "Open"},
19 "Quotation": {"docstatus": 0},
Rushabh Mehtad10ba852015-10-02 12:42:48 +053020 "Sales Order": {
patilsangrambf2b5112016-02-22 16:24:23 +053021 "status": ("not in", ("Completed", "Closed")),
Rushabh Mehtad10ba852015-10-02 12:42:48 +053022 "docstatus": ("<", 2)
23 },
Rushabh Mehta905f8322015-03-02 13:01:39 +053024 "Journal Entry": {"docstatus": 0},
Nabin Hait906552a2016-09-05 14:35:23 +053025 "Sales Invoice": {
26 "outstanding_amount": (">", 0),
27 "docstatus": ("<", 2)
28 },
29 "Purchase Invoice": {
30 "outstanding_amount": (">", 0),
31 "docstatus": ("<", 2)
32 },
Manas Solanki546ca312016-11-05 01:14:29 +053033 "Payment Entry": {"docstatus": 0},
Rushabh Mehta905f8322015-03-02 13:01:39 +053034 "Leave Application": {"status": "Open"},
35 "Expense Claim": {"approval_status": "Draft"},
36 "Job Applicant": {"status": "Open"},
Nabin Hait906552a2016-09-05 14:35:23 +053037 "Delivery Note": {
38 "status": ("not in", ("Completed", "Closed")),
39 "docstatus": ("<", 2)
40 },
Rushabh Mehta905f8322015-03-02 13:01:39 +053041 "Stock Entry": {"docstatus": 0},
Rushabh Mehta44038532016-02-27 16:24:34 +053042 "Material Request": {
Anand Doshi44f777e2016-03-07 19:35:34 +053043 "docstatus": ("<", 2),
Rushabh Mehta44038532016-02-27 16:24:34 +053044 "status": ("not in", ("Stopped",)),
45 "per_ordered": ("<", 100)
46 },
Rushabh Mehta5d0e8de2016-04-11 17:34:25 +053047 "Request for Quotation": { "docstatus": 0 },
48 "Supplier Quotation": {"docstatus": 0},
Rushabh Mehtad10ba852015-10-02 12:42:48 +053049 "Purchase Order": {
patilsangrambf2b5112016-02-22 16:24:23 +053050 "status": ("not in", ("Completed", "Closed")),
Rushabh Mehtad10ba852015-10-02 12:42:48 +053051 "docstatus": ("<", 2)
52 },
Nabin Hait906552a2016-09-05 14:35:23 +053053 "Purchase Receipt": {
54 "status": ("not in", ("Completed", "Closed")),
55 "docstatus": ("<", 2)
56 },
Rushabh Mehta15a7f212016-04-14 17:30:40 +053057 "Production Order": { "status": ("in", ("Draft", "Not Started", "In Process")) },
Rushabh Mehta905f8322015-03-02 13:01:39 +053058 "BOM": {"docstatus": 0},
Rohit Waghchauree94d18b2016-07-06 20:12:58 +053059 "Timesheet": {"status": "Draft"}
Rushabh Mehta30430792013-12-13 15:33:40 +053060 }
Rushabh Mehtae9138832015-02-25 12:04:49 +053061 }