From 4c1584daf5619436d2290fd28b01ccbdc24f9534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Rold=C3=A1n?= Date: Mon, 9 Sep 2024 14:28:35 -0300 Subject: [PATCH] fix sales analutics; (#869) --- erpnext/selling/report/sales_analytics/sales_analytics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/selling/report/sales_analytics/sales_analytics.py b/erpnext/selling/report/sales_analytics/sales_analytics.py index b8f7ed80b2fd..56875c8a8f3f 100644 --- a/erpnext/selling/report/sales_analytics/sales_analytics.py +++ b/erpnext/selling/report/sales_analytics/sales_analytics.py @@ -5,7 +5,7 @@ import frappe from frappe import _, scrub -from frappe.utils import add_days, add_to_date, flt, getdate +from frappe.utils import add_days, add_to_date, flt, getdate, cint from six import iteritems from erpnext.accounts.utils import get_fiscal_year @@ -441,7 +441,7 @@ def get_teams(self): for d in self.group_entries: if d.parent: - self.depth_map.setdefault(d.name, self.depth_map.get(d.parent) + 1) + self.depth_map.setdefault(d.name, cint(self.depth_map.get(d.parent)) + 1) else: self.depth_map.setdefault(d.name, 0)