error fixed in reorder item email notification

This commit is contained in:
Nabin Hait 2012-06-12 14:30:57 +05:30
parent ea8ff071cb
commit d8fd8cfe1b

View File

@ -385,7 +385,7 @@ class DocType:
""" Notify user about auto creation of indent"""
from webnotes.utils.email_lib import sendmail
email_list=[d 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') ")]
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)