From 4676891cbfc468fc9872f9cec2cca745dff7b749 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 12 Jun 2012 15:04:38 +0530 Subject: [PATCH] error fixed in reorder item email notification --- erpnext/stock/doctype/bin/bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/bin/bin.py b/erpnext/stock/doctype/bin/bin.py index c9a700c9e7..f2cd873e0f 100644 --- a/erpnext/stock/doctype/bin/bin.py +++ b/erpnext/stock/doctype/bin/bin.py @@ -385,7 +385,7 @@ class DocType: """ Notify user about auto creation of indent""" from webnotes.utils.email_lib import sendmail - email_list=[d[0] for d in sql("select parent from tabUserRole where role in ('Purchase Manager','Material Manager') ")] + email_list=[d[0] for d in sql("select parent from tabUserRole where role in ('Purchase Manager','Material Manager') and parent not in ('Administrator', 'All', 'Guest')")] msg='A Purchase Request has been raised for item %s: %s on %s '%(doc_type, doc_name, nowdate()) sendmail(email_list, subject='Auto Purchase Request Generation Notification', msg = msg)