mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 03:45:08 +00:00
fix: reset sla if no active sla found
This commit is contained in:
@@ -379,6 +379,7 @@ def apply(doc, method=None):
|
||||
sla = get_active_service_level_agreement_for(doc)
|
||||
|
||||
if not sla:
|
||||
doc.service_level_agreement = None
|
||||
return
|
||||
|
||||
process_sla(doc, sla)
|
||||
|
||||
Reference in New Issue
Block a user