Opportunity From field is mandatory
This commit is contained in:
parent
0335005eea
commit
dd4617d30f
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user