mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 09:54:47 +00:00
(cherry picked from commit 71da90034d)
Co-authored-by: Anupam Kumar <anupamvns0099@gmail.com>
This commit is contained in:
@@ -95,6 +95,7 @@ frappe.ui.form.on("Opportunity", {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
frm.add_custom_button(__("Reopen"), function() {
|
frm.add_custom_button(__("Reopen"), function() {
|
||||||
|
frm.set_value("lost_reasons",[])
|
||||||
frm.set_value("status", "Open");
|
frm.set_value("status", "Open");
|
||||||
frm.save();
|
frm.save();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -92,6 +92,8 @@ class Quotation(SellingController):
|
|||||||
self.update_lead()
|
self.update_lead()
|
||||||
|
|
||||||
def on_cancel(self):
|
def on_cancel(self):
|
||||||
|
if self.lost_reasons:
|
||||||
|
self.lost_reasons = []
|
||||||
super(Quotation, self).on_cancel()
|
super(Quotation, self).on_cancel()
|
||||||
|
|
||||||
#update enquiry status
|
#update enquiry status
|
||||||
|
|||||||
Reference in New Issue
Block a user