fix: Fixes related to customer/lead merging (#18075)

This commit is contained in:
Nabin Hait
2019-06-28 12:36:27 +05:30
committed by GitHub
parent 42e62bd1b4
commit b059c6f630
7 changed files with 26 additions and 12 deletions

View File

@@ -36,11 +36,11 @@ def send_message(subject="Website Query", message="", sender="", status="Open"):
))
if customer:
opportunity.customer = customer[0][0]
opportunity.party_name = customer[0][0]
elif lead:
opportunity.lead = lead
opportunity.party_name = lead
else:
opportunity.lead = new_lead.name
opportunity.party_name = new_lead.name
opportunity.insert(ignore_permissions=True)