Anand Doshi | 885e074 | 2015-03-03 14:55:30 +0530 | [diff] [blame] | 1 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors |
Rushabh Mehta | 3043079 | 2013-12-13 15:33:40 +0530 | [diff] [blame] | 2 | # License: GNU General Public License v3. See license.txt |
| 3 | |
| 4 | from __future__ import unicode_literals |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 5 | import frappe |
Rushabh Mehta | 3043079 | 2013-12-13 15:33:40 +0530 | [diff] [blame] | 6 | |
| 7 | def get_notification_config(): |
Rushabh Mehta | e913883 | 2015-02-25 12:04:49 +0530 | [diff] [blame] | 8 | return { "for_doctype": |
Rushabh Mehta | 3043079 | 2013-12-13 15:33:40 +0530 | [diff] [blame] | 9 | { |
Rushabh Mehta | 905f832 | 2015-03-02 13:01:39 +0530 | [diff] [blame] | 10 | "Issue": {"status": "Open"}, |
| 11 | "Warranty Claim": {"status": "Open"}, |
| 12 | "Task": {"status": "Open"}, |
| 13 | "Lead": {"status": "Open"}, |
| 14 | "Contact": {"status": "Open"}, |
| 15 | "Opportunity": {"docstatus": 0}, |
| 16 | "Quotation": {"docstatus": 0}, |
| 17 | "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 Mehta | e913883 | 2015-02-25 12:04:49 +0530 | [diff] [blame] | 29 | "Production Order": { "status": "In Process" }, |
Rushabh Mehta | 905f832 | 2015-03-02 13:01:39 +0530 | [diff] [blame] | 30 | "BOM": {"docstatus": 0}, |
| 31 | "Timesheet": {"docstatus": 0}, |
| 32 | "Time Log": {"status": "Draft"}, |
| 33 | "Time Log Batch": {"status": "Draft"}, |
Rushabh Mehta | 3043079 | 2013-12-13 15:33:40 +0530 | [diff] [blame] | 34 | } |
Rushabh Mehta | e913883 | 2015-02-25 12:04:49 +0530 | [diff] [blame] | 35 | } |