From c03cba9d175d98c32dd421d8b14ad05498ef9d8e Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 8 Oct 2015 11:46:32 +0530 Subject: [PATCH] [fix] sales order notification --- erpnext/startup/notifications.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/erpnext/startup/notifications.py b/erpnext/startup/notifications.py index 12d0308ecd..b1b63b0cb8 100644 --- a/erpnext/startup/notifications.py +++ b/erpnext/startup/notifications.py @@ -15,8 +15,7 @@ def get_notification_config(): "Opportunity": {"status": "Open"}, "Quotation": {"docstatus": 0}, "Sales Order": { - "status": ("!=", "Stopped"), - "status": ("!=", "Completed"), + "status": ("not in", ("Stopped", "Completed")), "docstatus": ("<", 2) }, "Journal Entry": {"docstatus": 0}, @@ -30,8 +29,7 @@ def get_notification_config(): "Stock Entry": {"docstatus": 0}, "Material Request": {"docstatus": 0}, "Purchase Order": { - "status": ("!=", "Completed"), - "status": ("!=", "Stopped"), + "status": ("not in", ("Stopped", "Completed")), "docstatus": ("<", 2) }, "Production Order": { "status": "In Process" },