def notify_status(doc, method=None):
 party_type = None
 for (key, doctypes) in status_depends_on.iteritems():
  if (doc.doctype in doctypes):
   party_type = key
   break
 if (not party_type):
  return
 name = doc.get(party_type.lower())
 if (not name):
  return
 party = frappe.get_doc(party_type, name)
 filters = get_filters_for(doc.doctype)
 party.flags.ignore_mandatory = True
 status = None
 if filters:
  if evaluate_filters(doc, filters):
   status = u'Open'
 if (status == u'Open'):
  if (party.status != u'Open'):
   party.status = u'Open'
   party.save(ignore_permissions=True)
 elif (party.status == u'Open'):
  update_status(party)
 party.update_modified()
 party.notify_update()

def notify_status ( doc , method = None ) : party_type = None for ( key , doctypes ) in status_depends_on . iteritems ( ) : if ( doc . doctype in doctypes ) : party_type = key break if ( not party_type ) : return name = doc . get ( party_type . lower ( ) ) if ( not name ) : return party = frappe . get_doc ( party_type , name ) filters = get_filters_for ( doc . doctype ) party . flags . ignore_mandatory = True status = None if filters : if evaluate_filters ( doc , filters ) : status = u'Open' if ( status == u'Open' ) : if ( party . status != u'Open' ) : party . status = u'Open' party . save ( ignore_permissions = True ) elif ( party . status == u'Open' ) : update_status ( party ) party . update_modified ( ) party . notify_update ( )
notify status to customer .