From 5e8c31ceda6e0414fb67193321cfbeea0bf92daf Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 17 Sep 2024 18:08:16 +0530 Subject: [PATCH] fix: also pass company while creating quotation --- 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 1e80014a..0cc95686 100644 --- a/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py +++ b/crm/fcrm/doctype/erpnext_crm_settings/erpnext_crm_settings.py @@ -82,13 +82,13 @@ def get_quotation_url(crm_deal, organization): if not erpnext_crm_settings.is_erpnext_in_different_site: quotation_url = get_url_to_form("Quotation") - return f"{quotation_url}/new?quotation_to=CRM Deal&crm_deal={crm_deal}&party_name={crm_deal}" + return f"{quotation_url}/new?quotation_to=CRM Deal&crm_deal={crm_deal}&party_name={crm_deal}&company={erpnext_crm_settings.erpnext_company}" else: site_url = erpnext_crm_settings.get("erpnext_site_url") quotation_url = f"{site_url}/app/quotation" prospect = create_prospect_in_remote_site(crm_deal, erpnext_crm_settings) - return f"{quotation_url}/new?quotation_to=Prospect&crm_deal={crm_deal}&party_name={prospect}" + return f"{quotation_url}/new?quotation_to=Prospect&crm_deal={crm_deal}&party_name={prospect}&company={erpnext_crm_settings.erpnext_company}" def create_prospect_in_remote_site(crm_deal, erpnext_crm_settings): try: