mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
Merge pull request #35257 from frappe/mergify/bp/version-14-hotfix/pr-32132
fix: validate for active sla (backport #32132)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user