fix: validate for active sla (#32132)
This commit is contained in:
parent
fffc245922
commit
f2b7c9ee66
@ -776,6 +776,9 @@ def on_communication_update(doc, status):
|
|||||||
if not parent.meta.has_field("service_level_agreement"):
|
if not parent.meta.has_field("service_level_agreement"):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not parent.get("service_level_agreement"):
|
||||||
|
return
|
||||||
|
|
||||||
if (
|
if (
|
||||||
doc.sent_or_received == "Received" # a reply is received
|
doc.sent_or_received == "Received" # a reply is received
|
||||||
and parent.get("status") == "Open" # issue status is set as open from communication.py
|
and parent.get("status") == "Open" # issue status is set as open from communication.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user