mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +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,
|
(not cint(self.get("__islocal"))) else None,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if not self.enquiry_from:
|
||||||
|
frappe.throw(_("Opportunity From field is mandatory"))
|
||||||
|
|
||||||
self.set_status()
|
self.set_status()
|
||||||
self.validate_item_details()
|
self.validate_item_details()
|
||||||
self.validate_uom_is_integer("uom", "qty")
|
self.validate_uom_is_integer("uom", "qty")
|
||||||
|
|||||||
Reference in New Issue
Block a user