blob: 335efbb9127cbc37877cd55ba876b79d2383bb89 [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},
25 "Sales Invoice": { "outstanding_amount": (">", 0), "docstatus": ("<", 2) },
26 "Purchase Invoice": {"docstatus": 0},
27 "Leave Application": {"status": "Open"},
28 "Expense Claim": {"approval_status": "Draft"},
29 "Job Applicant": {"status": "Open"},
Rushabh Mehta905f8322015-03-02 13:01:39 +053030 "Delivery Note": {"docstatus": 0},
31 "Stock Entry": {"docstatus": 0},
Rushabh Mehta44038532016-02-27 16:24:34 +053032 "Material Request": {
Anand Doshi44f777e2016-03-07 19:35:34 +053033 "docstatus": ("<", 2),
Rushabh Mehta44038532016-02-27 16:24:34 +053034 "status": ("not in", ("Stopped",)),
35 "per_ordered": ("<", 100)
36 },
Rushabh Mehta5d0e8de2016-04-11 17:34:25 +053037 "Request for Quotation": { "docstatus": 0 },
38 "Supplier Quotation": {"docstatus": 0},
Rushabh Mehtad10ba852015-10-02 12:42:48 +053039 "Purchase Order": {
patilsangrambf2b5112016-02-22 16:24:23 +053040 "status": ("not in", ("Completed", "Closed")),
Rushabh Mehtad10ba852015-10-02 12:42:48 +053041 "docstatus": ("<", 2)
42 },
Rushabh Mehta5d0e8de2016-04-11 17:34:25 +053043 "Purchase Receipt": {"docstatus": 0},
Rushabh Mehta15a7f212016-04-14 17:30:40 +053044 "Production Order": { "status": ("in", ("Draft", "Not Started", "In Process")) },
Rushabh Mehta905f8322015-03-02 13:01:39 +053045 "BOM": {"docstatus": 0},
46 "Timesheet": {"docstatus": 0},
47 "Time Log": {"status": "Draft"},
Anand Doshi1a2e6bf2015-08-14 16:52:55 +053048 "Time Log Batch": {"status": "Draft"}
Rushabh Mehta30430792013-12-13 15:33:40 +053049 }
Rushabh Mehtae9138832015-02-25 12:04:49 +053050 }