def send_email_notification(mr_list):
 email_list = frappe.db.sql_list("select distinct r.parent\n DCTB  DCTB from tabUserRole r, tabUser p\n DCTB  DCTB where p.name = r.parent and p.enabled = 1 and p.docstatus < 2\n DCTB  DCTB and r.role in ('Purchase Manager','Stock Manager')\n DCTB  DCTB and p.name not in ('Administrator', 'All', 'Guest')")
 msg = frappe.render_template('templates/emails/reorder_item.html', {'mr_list': mr_list})
 frappe.sendmail(recipients=email_list, subject=_('Auto Material Requests Generated'), message=msg)

def send_email_notification ( mr_list ) : email_list = frappe . db . sql_list ( "select distinct r.parent\n DCTB  DCTB from tabUserRole r, tabUser p\n DCTB  DCTB where p.name = r.parent and p.enabled = 1 and p.docstatus < 2\n DCTB  DCTB and r.role in ('Purchase Manager','Stock Manager')\n DCTB  DCTB and p.name not in ('Administrator', 'All', 'Guest')" ) msg = frappe . render_template ( 'templates/emails/reorder_item.html' , { 'mr_list' : mr_list } ) frappe . sendmail ( recipients = email_list , subject = _ ( 'Auto Material Requests Generated' ) , message = msg )
notify user about auto creation of indent .