Merge pull request #27739 from nextchamp-saqib/sla-migrate-fix

fix: sync_jobs fails
This commit is contained in:
Deepesh Garg 2021-10-04 11:04:12 +05:30 committed by GitHub
commit a1c4c62fac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -203,10 +203,11 @@
} }
], ],
"links": [], "links": [],
"modified": "2021-07-27 11:16:45.596579", "modified": "2021-10-02 11:32:55.556024",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Support", "module": "Support",
"name": "Service Level Agreement", "name": "Service Level Agreement",
"naming_rule": "Expression",
"owner": "Administrator", "owner": "Administrator",
"permissions": [ "permissions": [
{ {

View File

@ -339,7 +339,7 @@ def set_documents_with_active_service_level_agreement():
def apply(doc, method=None): def apply(doc, method=None):
# Applies SLA to document on validate # 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(): doc.doctype not in get_documents_with_active_service_level_agreement():
return return