Skip to content

Commit

Permalink
fix: opportunity link is missign from customer (#28110)
Browse files Browse the repository at this point in the history
  • Loading branch information
anupamvs authored Oct 28, 2021
1 parent c5a16a9 commit 4787a75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/crm/doctype/opportunity/opportunity.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ def update_item(obj, target, source_parent):
@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

Expand Down

0 comments on commit 4787a75

Please sign in to comment.