Skip to content

Commit

Permalink
fix: based on status_update.py update opportunity status to converted… (
Browse files Browse the repository at this point in the history
#35145)

fix: based on status_update.py update opportunity status to converted… (#35145)

fix: based on status_update.py update opportunity status to converted on sales submit
(cherry picked from commit a9a47a5)

Co-authored-by: HarryPaulo <paulo_fabris@hotmail.com>
  • Loading branch information
mergify[bot] and HarryPaulo authored Jun 7, 2023
1 parent e505516 commit dee8275
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/selling/doctype/sales_order/sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit dee8275

Please sign in to comment.