mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
Use range instead xrange (#13128)
* Use range instead of xrange * convert float to int
This commit is contained in:
committed by
Faris Ansari
parent
72d8509b3d
commit
96698c9a77
@@ -116,7 +116,7 @@ def make_material_request(item_code, qty):
|
||||
return mr
|
||||
|
||||
def add_suppliers(rfq):
|
||||
for i in xrange(2):
|
||||
for i in range(2):
|
||||
supplier = get_random("Supplier")
|
||||
if supplier not in [d.supplier for d in rfq.get('suppliers')]:
|
||||
rfq.append("suppliers", { "supplier": supplier })
|
||||
|
||||
Reference in New Issue
Block a user