blob: e847cfa1c9a5f30f7d0937be086b8747adc1ab19 [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 Mehta793ba6b2014-02-14 15:47:51 +05305import frappe
Rushabh Mehta30430792013-12-13 15:33:40 +05306
7def get_notification_config():
Rushabh Mehtae9138832015-02-25 12:04:49 +05308 return { "for_doctype":
Rushabh Mehta30430792013-12-13 15:33:40 +05309 {
Rushabh Mehta905f8322015-03-02 13:01:39 +053010 "Issue": {"status": "Open"},
11 "Warranty Claim": {"status": "Open"},
12 "Task": {"status": "Open"},
13 "Lead": {"status": "Open"},
14 "Contact": {"status": "Open"},
Rushabh Mehtaf579cf92015-04-13 16:58:47 +053015 "Opportunity": {"status": "Open"},
16 "Quotation": {"docstatus": 0},
Rushabh Mehta905f8322015-03-02 13:01:39 +053017 "Sales Order": { "per_delivered": ("<", 100), "status": ("!=", "Stopped"), "docstatus": ("<", 2) },
18 "Journal Entry": {"docstatus": 0},
19 "Sales Invoice": { "outstanding_amount": (">", 0), "docstatus": ("<", 2) },
20 "Purchase Invoice": {"docstatus": 0},
21 "Leave Application": {"status": "Open"},
22 "Expense Claim": {"approval_status": "Draft"},
23 "Job Applicant": {"status": "Open"},
24 "Purchase Receipt": {"docstatus": 0},
25 "Delivery Note": {"docstatus": 0},
26 "Stock Entry": {"docstatus": 0},
27 "Material Request": {"docstatus": 0},
28 "Purchase Order": { "per_received": ("<", 100), "status": ("!=", "Stopped"), "docstatus": ("<", 2) },
Rushabh Mehtae9138832015-02-25 12:04:49 +053029 "Production Order": { "status": "In Process" },
Rushabh Mehta905f8322015-03-02 13:01:39 +053030 "BOM": {"docstatus": 0},
31 "Timesheet": {"docstatus": 0},
32 "Time Log": {"status": "Draft"},
33 "Time Log Batch": {"status": "Draft"},
Rushabh Mehta30430792013-12-13 15:33:40 +053034 }
Rushabh Mehtae9138832015-02-25 12:04:49 +053035 }