From fbc3059c862b1df748657649953c723db20d032d Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 14 Feb 2025 13:50:18 +0530 Subject: [PATCH] fix: send address as string --- crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py b/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py index a5e5bc3c..f530a65d 100644 --- a/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py +++ b/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py @@ -160,9 +160,9 @@ def create_prospect_in_remote_site(crm_deal, erpnext_crm_settings): "industry": doc.industry, "website": doc.website, "annual_revenue": doc.annual_revenue, - "contacts": json.dumps(contacts), + "contacts": json.dumps(contacts) if contacts else None, "erpnext_company": erpnext_crm_settings.erpnext_company, - "address": address, + "address": json.dumps(address) if address else None, }, ) except Exception: