fix(sla): 'doctype' is not defined (#26982)

This commit is contained in:
Saqib 2021-08-17 14:22:47 +05:30 committed by GitHub
parent d932cba38a
commit 3c525e1136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,7 +220,7 @@ def get_active_service_level_agreement_for(doc):
return
filters = [
["Service Level Agreement", "document_type", "=", doctype],
["Service Level Agreement", "document_type", "=", doc.get('doctype')],
["Service Level Agreement", "enabled", "=", 1]
]