chore: removed comment

This commit is contained in:
Shariq Ansari 2025-09-03 12:06:08 +05:30 committed by GitHub
parent 486a06baf0
commit 7fda0db51b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ from crm.fcrm.doctype.crm_notification.crm_notification import notify_user
def validate(doc, method):
if doc.type == "Incoming" and doc.get("from"):
name, doctype = get_lead_or_deal_from_number(doc.get("from"))
if name != None: # only assignes a doctype and name if matching number is found, else does not obstruct creation of new message in whatsapp message doctype (frappe_whatsapp app) which is required for other chat applications
if name != None:
doc.reference_doctype = doctype
doc.reference_name = name