fix: validate for active sla (#32132)

This commit is contained in:
Shadrak Gurupnor 2022-09-13 13:42:45 +05:30 committed by GitHub
parent fffc245922
commit f2b7c9ee66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -776,6 +776,9 @@ def on_communication_update(doc, status):
if not parent.meta.has_field("service_level_agreement"):
return
if not parent.get("service_level_agreement"):
return
if (
doc.sent_or_received == "Received" # a reply is received
and parent.get("status") == "Open" # issue status is set as open from communication.py