Merge pull request #35355 from ruthra-kumar/fix_possible_type_erro_on_so_creation_from_quotation
fix: possible type error on quotation -> sales order creation
diff --git a/erpnext/selling/doctype/quotation/quotation.py b/erpnext/selling/doctype/quotation/quotation.py
index 0cab21f..61969fe 100644
--- a/erpnext/selling/doctype/quotation/quotation.py
+++ b/erpnext/selling/doctype/quotation/quotation.py
@@ -288,7 +288,7 @@
)
# sales team
- for d in customer.get("sales_team", []):
+ for d in customer.get("sales_team") or []:
target.append(
"sales_team",
{