Merge pull request #33195 from ruthra-kumar/type_error_on_sales_pipeline_report

fix: type error on Sales Pipeline Analytics
This commit is contained in:
Deepesh Garg 2022-12-02 10:10:36 +05:30 committed by GitHub
commit 2058fac177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,7 @@ class SalesPipelineAnalytics(object):
def check_for_assigned_to(self, period, value, count_or_amount, assigned_to, info):
if self.filters.get("assigned_to"):
for data in json.loads(info.get("opportunity_owner")):
for data in json.loads(info.get("opportunity_owner") or "[]"):
if data == self.filters.get("assigned_to"):
self.set_formatted_data(period, data, count_or_amount, assigned_to)
else: