From a9a47a51e49aeb84770ce94b62b5966952b56040 Mon Sep 17 00:00:00 2001 From: HarryPaulo Date: Wed, 7 Jun 2023 13:05:52 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20based=20on=20status=5Fupdate.py=20update?= =?UTF-8?q?=20opportunity=20status=20to=20converted=E2=80=A6=20(#35145)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: based on status_update.py update opportunity status to converted on sales submit --- erpnext/selling/doctype/sales_order/sales_order.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py index d3c2347216..58b9df8dab 100755 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -230,6 +230,7 @@ class SalesOrder(SellingController): frappe.throw(_("Quotation {0} is cancelled").format(quotation)) doc.set_status(update=True) + doc.update_opportunity("Converted" if flag == "submit" else "Quotation") def validate_drop_ship(self): for d in self.get("items"):