fix: Validation message

This commit is contained in:
Deepesh Garg 2020-03-04 11:55:10 +05:30 committed by GitHub
parent d398c73bc5
commit 6d604a151b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ class Quotation(SellingController):
if reason.get('lost_reason') in lost_reasons_lst:
self.append('lost_reasons', reason)
else:
frappe.throw(_("Invalid lost reason {0}, please create a new lost reason".format(frappe.bold(reason.get('lost_reason')))))
frappe.throw(_("Invalid lost reason {0}, please create a new lost reason").format(frappe.bold(reason.get('lost_reason'))))
self.update_opportunity()
self.update_lead()