fix: sync_jobs fails
This commit is contained in:
parent
f8c1c73953
commit
7ac02de613
@ -203,10 +203,11 @@
|
||||
}
|
||||
],
|
||||
"links": [],
|
||||
"modified": "2021-07-27 11:16:45.596579",
|
||||
"modified": "2021-10-02 11:32:55.556024",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Support",
|
||||
"name": "Service Level Agreement",
|
||||
"naming_rule": "Expression",
|
||||
"owner": "Administrator",
|
||||
"permissions": [
|
||||
{
|
||||
|
@ -339,7 +339,7 @@ def set_documents_with_active_service_level_agreement():
|
||||
|
||||
def apply(doc, method=None):
|
||||
# Applies SLA to document on validate
|
||||
if frappe.flags.in_patch or frappe.flags.in_install or frappe.flags.in_setup_wizard or \
|
||||
if frappe.flags.in_patch or frappe.flags.in_migrate or frappe.flags.in_install or frappe.flags.in_setup_wizard or \
|
||||
doc.doctype not in get_documents_with_active_service_level_agreement():
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user