From d30aee5dd618c8ab5b898b49f11e71d0d3176af7 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 21:50:18 +0530 Subject: [PATCH] fix: link opportunity in prospect after creating opportunity from prospect (backport #41769) (#41777) fix: link opportunity in prospect after creating opportunity from prospect (#41769) (cherry picked from commit 12e48f0b632816101cc2babc183fd4b4d170832a) Co-authored-by: Nabin Hait --- erpnext/crm/doctype/opportunity/opportunity.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/crm/doctype/opportunity/opportunity.py b/erpnext/crm/doctype/opportunity/opportunity.py index aeaebafabe9..db9d31b53bb 100644 --- a/erpnext/crm/doctype/opportunity/opportunity.py +++ b/erpnext/crm/doctype/opportunity/opportunity.py @@ -118,6 +118,8 @@ class Opportunity(TransactionBase, CRMNote): self.title = self.customer_name self.calculate_totals() + + def on_update(self): self.update_prospect() def map_fields(self):