mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
Opportunity From field is mandatory
This commit is contained in:
@@ -93,6 +93,9 @@ class Opportunity(TransactionBase):
|
||||
(not cint(self.get("__islocal"))) else None,
|
||||
})
|
||||
|
||||
if not self.enquiry_from:
|
||||
frappe.throw(_("Opportunity From field is mandatory"))
|
||||
|
||||
self.set_status()
|
||||
self.validate_item_details()
|
||||
self.validate_uom_is_integer("uom", "qty")
|
||||
|
||||
Reference in New Issue
Block a user