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 | 3043079 | 2013-12-13 15:33:40 +0530 | [diff] [blame] | 5 | |
| 6 | def get_notification_config(): |
Rushabh Mehta | e913883 | 2015-02-25 12:04:49 +0530 | [diff] [blame] | 7 | return { "for_doctype": |
Rushabh Mehta | 3043079 | 2013-12-13 15:33:40 +0530 | [diff] [blame] | 8 | { |
Rushabh Mehta | 905f832 | 2015-03-02 13:01:39 +0530 | [diff] [blame] | 9 | "Issue": {"status": "Open"}, |
| 10 | "Warranty Claim": {"status": "Open"}, |
Rushabh Mehta | 868bb26 | 2017-03-09 18:11:11 +0530 | [diff] [blame] | 11 | "Task": {"status": ("in", ("Open", "Overdue"))}, |
Rushabh Mehta | 856ee10 | 2015-07-17 15:03:18 +0530 | [diff] [blame] | 12 | "Project": {"status": "Open"}, |
Rushabh Mehta | 15a7f21 | 2016-04-14 17:30:40 +0530 | [diff] [blame] | 13 | "Item": {"total_projected_qty": ("<", 0)}, |
Rushabh Mehta | 905f832 | 2015-03-02 13:01:39 +0530 | [diff] [blame] | 14 | "Lead": {"status": "Open"}, |
| 15 | "Contact": {"status": "Open"}, |
Rushabh Mehta | f579cf9 | 2015-04-13 16:58:47 +0530 | [diff] [blame] | 16 | "Opportunity": {"status": "Open"}, |
| 17 | "Quotation": {"docstatus": 0}, |
Rushabh Mehta | d10ba85 | 2015-10-02 12:42:48 +0530 | [diff] [blame] | 18 | "Sales Order": { |
patilsangram | bf2b511 | 2016-02-22 16:24:23 +0530 | [diff] [blame] | 19 | "status": ("not in", ("Completed", "Closed")), |
Rushabh Mehta | d10ba85 | 2015-10-02 12:42:48 +0530 | [diff] [blame] | 20 | "docstatus": ("<", 2) |
| 21 | }, |
Rushabh Mehta | 905f832 | 2015-03-02 13:01:39 +0530 | [diff] [blame] | 22 | "Journal Entry": {"docstatus": 0}, |
Nabin Hait | 906552a | 2016-09-05 14:35:23 +0530 | [diff] [blame] | 23 | "Sales Invoice": { |
Rushabh Mehta | 87037bd | 2017-01-30 12:29:54 +0530 | [diff] [blame] | 24 | "outstanding_amount": (">", 0), |
| 25 | "docstatus": ("<", 2) |
Nabin Hait | 906552a | 2016-09-05 14:35:23 +0530 | [diff] [blame] | 26 | }, |
| 27 | "Purchase Invoice": { |
Rushabh Mehta | 87037bd | 2017-01-30 12:29:54 +0530 | [diff] [blame] | 28 | "outstanding_amount": (">", 0), |
Nabin Hait | 906552a | 2016-09-05 14:35:23 +0530 | [diff] [blame] | 29 | "docstatus": ("<", 2) |
| 30 | }, |
Manas Solanki | 546ca31 | 2016-11-05 01:14:29 +0530 | [diff] [blame] | 31 | "Payment Entry": {"docstatus": 0}, |
Rushabh Mehta | 905f832 | 2015-03-02 13:01:39 +0530 | [diff] [blame] | 32 | "Leave Application": {"status": "Open"}, |
| 33 | "Expense Claim": {"approval_status": "Draft"}, |
| 34 | "Job Applicant": {"status": "Open"}, |
Nabin Hait | 906552a | 2016-09-05 14:35:23 +0530 | [diff] [blame] | 35 | "Delivery Note": { |
| 36 | "status": ("not in", ("Completed", "Closed")), |
| 37 | "docstatus": ("<", 2) |
| 38 | }, |
Rushabh Mehta | 905f832 | 2015-03-02 13:01:39 +0530 | [diff] [blame] | 39 | "Stock Entry": {"docstatus": 0}, |
Rushabh Mehta | 4403853 | 2016-02-27 16:24:34 +0530 | [diff] [blame] | 40 | "Material Request": { |
Anand Doshi | 44f777e | 2016-03-07 19:35:34 +0530 | [diff] [blame] | 41 | "docstatus": ("<", 2), |
Rushabh Mehta | 4403853 | 2016-02-27 16:24:34 +0530 | [diff] [blame] | 42 | "status": ("not in", ("Stopped",)), |
| 43 | "per_ordered": ("<", 100) |
| 44 | }, |
Rushabh Mehta | 5d0e8de | 2016-04-11 17:34:25 +0530 | [diff] [blame] | 45 | "Request for Quotation": { "docstatus": 0 }, |
| 46 | "Supplier Quotation": {"docstatus": 0}, |
Rushabh Mehta | d10ba85 | 2015-10-02 12:42:48 +0530 | [diff] [blame] | 47 | "Purchase Order": { |
patilsangram | bf2b511 | 2016-02-22 16:24:23 +0530 | [diff] [blame] | 48 | "status": ("not in", ("Completed", "Closed")), |
Rushabh Mehta | d10ba85 | 2015-10-02 12:42:48 +0530 | [diff] [blame] | 49 | "docstatus": ("<", 2) |
| 50 | }, |
Nabin Hait | 906552a | 2016-09-05 14:35:23 +0530 | [diff] [blame] | 51 | "Purchase Receipt": { |
| 52 | "status": ("not in", ("Completed", "Closed")), |
| 53 | "docstatus": ("<", 2) |
| 54 | }, |
Rushabh Mehta | 15a7f21 | 2016-04-14 17:30:40 +0530 | [diff] [blame] | 55 | "Production Order": { "status": ("in", ("Draft", "Not Started", "In Process")) }, |
Rushabh Mehta | 905f832 | 2015-03-02 13:01:39 +0530 | [diff] [blame] | 56 | "BOM": {"docstatus": 0}, |
Rohit Waghchaure | e94d18b | 2016-07-06 20:12:58 +0530 | [diff] [blame] | 57 | "Timesheet": {"status": "Draft"} |
Rushabh Mehta | 3043079 | 2013-12-13 15:33:40 +0530 | [diff] [blame] | 58 | } |
Rushabh Mehta | e913883 | 2015-02-25 12:04:49 +0530 | [diff] [blame] | 59 | } |