Merge pull request #48267 from frappe/mergify/bp/version-15-hotfix/pr-48266

fix: customer_group import from lead to customer (backport #48266)
This commit is contained in:
ruthra kumar
2025-06-30 10:48:20 +05:30
committed by GitHub

View File

@@ -323,7 +323,8 @@ def _make_customer(source_name, target_doc=None, ignore_permissions=False):
target.customer_type = "Individual" target.customer_type = "Individual"
target.customer_name = source.lead_name target.customer_name = source.lead_name
target.customer_group = frappe.db.get_default("Customer Group") if not target.customer_group:
target.customer_group = frappe.db.get_default("Customer Group")
doclist = get_mapped_doc( doclist = get_mapped_doc(
"Lead", "Lead",