fix: opportunity link is missign from customer (#28110) (#28121)

(cherry picked from commit 4787a75208)

Co-authored-by: Anupam Kumar <anupamvns0099@gmail.com>
This commit is contained in:
mergify[bot]
2021-10-28 11:48:19 +05:30
committed by GitHub
parent a19f0f484c
commit 9c7cdc1079

View File

@@ -305,6 +305,8 @@ def make_request_for_quotation(source_name, target_doc=None):
@frappe.whitelist()
def make_customer(source_name, target_doc=None):
def set_missing_values(source, target):
target.opportunity_name = source.name
if source.opportunity_from == "Lead":
target.lead_name = source.party_name