From 2716435c6070b11d6b0128f949484f747ef7ea0a Mon Sep 17 00:00:00 2001 From: HarryPaulo Date: Wed, 3 May 2023 10:17:50 -0300 Subject: [PATCH] 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 de63f6dec58a..de4f8f496e49 100755 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -217,6 +217,7 @@ def update_prevdoc_status(self, flag=None): 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"):