Use range instead xrange (#13128)
* Use range instead of xrange
* convert float to int
diff --git a/erpnext/templates/pages/home.py b/erpnext/templates/pages/home.py
index 9a4c89c..82d525a 100644
--- a/erpnext/templates/pages/home.py
+++ b/erpnext/templates/pages/home.py
@@ -19,7 +19,7 @@
# show atleast 3 products
if len(homepage.products) < 3:
- for i in xrange(3 - len(homepage.products)):
+ for i in range(3 - len(homepage.products)):
homepage.append('products', {
'item_code': 'product-{0}'.format(i),
'item_name': frappe._('Product {0}').format(i),