Merge branch 'sla_fix' of https://github.com/hrwx/erpnext into sla_fix

This commit is contained in:
Himanshu Warekar 2019-06-20 23:30:20 +05:30
commit f5262c54ff

View File

@ -342,7 +342,7 @@ def assign_to_user(doc, subject_field):
elif doc.lead:
assign_user = frappe.db.get_value('Lead', doc.lead, 'lead_owner')
if assign_user and assign_user != 'Administrator':
if assign_user and assign_user not in ['Administrator', 'Guest']:
if not assign_to.get(dict(doctype = doc.doctype, name = doc.name)):
assign_to.add({
"assign_to": assign_user,