fix: include standalone sla in issues

This commit is contained in:
Himanshu Warekar 2019-06-28 22:26:58 +05:30
parent 0aa4e40edf
commit 115da67713

View File

@ -85,8 +85,9 @@ def get_service_level_agreement_filters(name, customer=None):
["Service Level Agreement", "default_service_level_agreement", "=", 1]
]
else:
# Include SLA with No Entity and Entity Type
or_filters = [
["Service Level Agreement", "entity", "in", [customer, get_customer_group(customer), get_customer_territory(customer), "IS NULL"]],
["Service Level Agreement", "entity", "in", [customer, get_customer_group(customer), get_customer_territory(customer), ""]],
["Service Level Agreement", "default_service_level_agreement", "=", 1]
]