chore: removed comment

(cherry picked from commit 8d0d234ac131b52266bdebb248b232b4923f97c0)
This commit is contained in:
Shariq Ansari 2025-09-03 12:06:21 +05:30 committed by Mergify
parent c0050dda71
commit 8be5535a2b

View File

@ -36,7 +36,7 @@ def on_update(doc, method):
def notify_agent(doc):
if doc.type == "Incoming":
doctype = doc.reference_doctype
if doctype and doctype.startswith("CRM "): #checks if there is a valid doctype, this is required because for making sure notification is triggered only for whatsapp message with a valid doctype assiged by validate fundtion. in absence of this ("doctype and ") addition, it stops creation of new whatsapp message.
if doctype and doctype.startswith("CRM "):
doctype = doctype[4:].lower()
notification_text = f"""
<div class="mb-2 leading-5 text-ink-gray-5">