commit | 0bfbfa3719b62b58e6c1b67a15b838fbaaa2a145 | [log] [tgz] |
---|---|---|
author | Saqib Ansari <nextchamp.saqib@gmail.com> | Fri Jan 14 16:13:17 2022 +0530 |
committer | Saqib Ansari <nextchamp.saqib@gmail.com> | Fri Jan 14 16:13:17 2022 +0530 |
tree | 4a58c74709c7969a5dc1ca3874b179e09f0ebc7c | |
parent | a68fc546e7d759d4eb213ce74e1df175e5413a9b [diff] |
fix: reset sla if no active sla found
diff --git a/erpnext/support/doctype/service_level_agreement/service_level_agreement.py b/erpnext/support/doctype/service_level_agreement/service_level_agreement.py index 0334ec8..c0ee1dc 100644 --- a/erpnext/support/doctype/service_level_agreement/service_level_agreement.py +++ b/erpnext/support/doctype/service_level_agreement/service_level_agreement.py
@@ -379,6 +379,7 @@ sla = get_active_service_level_agreement_for(doc) if not sla: + doc.service_level_agreement = None return process_sla(doc, sla)